CmisSync.Lib.Events.FSEvent.FSEvent C# (CSharp) Method

FSEvent() public method

Initializes a new instance of the CmisSync.Lib.Events.FSEvent class.
/// Is thrown when an argument passed to a method is invalid because it is . ///
public FSEvent ( WatcherChangeTypes type, string path, bool isDirectory ) : System
type WatcherChangeTypes /// The Type. ///
path string /// The Path. ///
isDirectory bool /// Signalizes if the target of the path is a directory or file. ///
return System
        public FSEvent(WatcherChangeTypes type, string path, bool isDirectory) {
            if (path == null) {
                throw new ArgumentNullException("path");
            }

            this.Type = type;
            FileSystemInfo fileSystemInfo = isDirectory ? (FileSystemInfo)new DirectoryInfo(path) : (FileSystemInfo)new FileInfo(path);
            this.LocalPath = fileSystemInfo.FullName;
            this.IsDirectory = isDirectory;
            this.Name = fileSystemInfo.Name;
        }