Skip to content

Commit

Permalink
release nuget v1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
d2phap committed Aug 29, 2018
1 parent d8a576c commit 8b301bc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
Binary file added Nuget/Build/FileWatcherEx.1.3.0.nupkg
Binary file not shown.
5 changes: 2 additions & 3 deletions Nuget/FileWatcherEx.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
<authors>Duong Dieu Phap</authors>
<owners>Duong Dieu Phap</owners>
<description>
A wrapper of C# FileSystemWatcher for Windows, used in ImageGlass project (https://imageglass.org).
This project is based on the VSCode FileWatcher: https://github.com/Microsoft/vscode-filewatcher-windows.
A wrapper of C# FileSystemWatcher for Windows, used in ImageGlass project (https://imageglass.org). This project is based on the VSCode FileWatcher: https://github.com/Microsoft/vscode-filewatcher-windows.
</description>
<releaseNotes>
- Add support for SynchronizingObject property (Cross-thread operation)
- Fixed: Error reading the C:\Users\User\Application Data directory
</releaseNotes>
<summary>
Features: Standardize the events of C# FileSystemWatcher. No false change notifications when a file system item is created, deleted, changed or renamed.
Expand Down
2 changes: 1 addition & 1 deletion Nuget/build.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nuget.exe pack "FileWatcherEx.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version 1.2.0.0
nuget.exe pack "FileWatcherEx.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version 1.3.0.0

pause
6 changes: 4 additions & 2 deletions Source/FileWatcherEx/FileWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,16 @@ public FileSystemWatcher Create(string path, Action<FileChangedEvent> onEvent, A
{
FileAttributes fileAttributes = File.GetAttributes(directoryInfo.FullName);

// TODO consider skipping hidden/system folders? See IG Issue #405 comment below
// TODO: consider skipping hidden/system folders?
// See IG Issue #405 comment below
// https://github.com/d2phap/ImageGlass/issues/405
if (fileAttributes.HasFlag(FileAttributes.Directory) && fileAttributes.HasFlag(FileAttributes.ReparsePoint))
{
try
{
this.MakeWatcher(directoryInfo.FullName);
}
catch (Exception ex)
catch (Exception)
{
// IG Issue #405: throws exception on Windows 10 for "c:\users\user\application data" folder and sub-folders.
}
Expand Down
10 changes: 5 additions & 5 deletions Source/FileWatcherEx/FileWatcherEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void Start()
{
if (!Directory.Exists(this.FolderPath)) return;




_processor = new EventProcessor((e) =>
Expand All @@ -117,7 +117,7 @@ void InvokeChangedEvent(object sender, FileChangedEvent fileEvent)
}
}


break;

case ChangeType.CREATED:
Expand All @@ -136,11 +136,11 @@ void InvokeCreatedEvent(object sender, FileChangedEvent fileEvent)
}
}


break;

case ChangeType.DELETED:

InvokeDeletedEvent(this.SynchronizingObject, e);

void InvokeDeletedEvent(object sender, FileChangedEvent fileEvent)
Expand Down Expand Up @@ -233,7 +233,7 @@ void onError(ErrorEventArgs e)
// Start watching
this._fsw.EnableRaisingEvents = true;
}



/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Source/FileWatcherEx/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: AssemblyVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.3.0.0")]

0 comments on commit 8b301bc

Please sign in to comment.