![]() ![]() will track changes in sub-folders as wellįileSWatch.IncludeSubdirectories = customFolder.FWSubFolders Associate the events that will be triggered when a new file Created,Changed,Deleted,Renamed // // is added to the monitored folder, using a lambda expressionįileSWatch.Created += (senderObj, fileSysArgs) => fileSWatch_Created(senderObj, fileSysArgs, actionToExecute.ToString(), customFolder.AllowedFiles) įileSWatch.Changed += (senderObj, fileSysArgs) => fileSWatch_Changed(senderObj, fileSysArgs, actionToExecute.ToString(), customFolder.AllowedFiles) įileSWatch.Deleted += (senderObj, fileSysArgs) => fileSWatch_Deleted(senderObj, fileSysArgs, actionToExecute.ToString(), customFolder.AllowedFiles) įileSWatch.Renamed += (senderObj, fileSysArgs) => fileSWatch_Renamed(senderObj, fileSysArgs, actionToExecute.ToString(), customFolder.AllowedFiles) įileSWatch.Error += (senderObj, fileSysArgs) => fileSWatch_Error(senderObj, fileSysArgs, actionToExecute.ToString(), customFolder.AllowedFiles) StringBuilder actionArguments = new StringBuilder(customFolder.ExecutableArguments) įileSWatch.NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.FileName | NotifyFilters.DirectoryName StringBuilder actionToExecute = new StringBuilder(customFolder.ExecutableFile) Creates a new instance of FileSystemWatcher // FileSystemWatcher fileSWatch = new FileSystemWatcher() this.fileSWatch = new FileSystemWatcher() įileSWatch.Filter = strExt // customFolder.FolderFilter // Sets the folder location Checks whether the folder is enabled and // also the directory is a valid location if (dir.Exists) // customFolder.FolderEnabled &ĬustomFolder.AllowedFiles = customFolder.FWExtension // setting extension to allowed filw extension to log. See LICENSE for details.// Loop the list to process each of the folder specifications found if (lstFolder.Count > 0) // check if path is available to watch else exit file watcherįoreach (CustomFolderSettings customFolder in lstFolder)ĭirectoryInfo dir = new DirectoryInfo(customFolder.FWPath) CopyrightĬopyright (c) 2010 - 2018 Thomas Flemming. ![]() Make a git commit, a git tag, push them, build a gem, push the gem. It'll make changes to the version.rb file,ĬHANGELOG.md (with confirmation, feel free to edit before continue), Use toys gem release 9.8.7 for releasing new versions. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) Commit, do not mess with rakefile, version, or history.This is important so I don't break it in a future version unintentionally. This gem was initially inspired by Tom Lieber's blog posting ( Web Archive version). Penn Taylor: Spinner displayed in the terminal and Start, pause, resume, stop, and finalize a running watch.įranco Leonardo Bulgarelli: Support for absolute and globbed paths.Īlexander Popov: Plugin system, daemon mode (CLI), tests improvements, code style improvements, many other fixes and improvements. ![]() This project would not be where it is today without the generous help provided by people reporting issues and these contributors: If you have questions, problems or suggestions about plugins system - please,Ĭhangelog can be found in an adjacent file. Require 'filewatcher' require 'filewatcher-spinner' # With the `true` value of option there will be an ASCII spinner in the STDOUT while waiting changes Filewatcher. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |