diff --git a/Nuget/Build/FileWatcherEx.1.3.0.nupkg b/Nuget/Build/FileWatcherEx.1.3.0.nupkg
new file mode 100644
index 0000000..cb83fd4
Binary files /dev/null and b/Nuget/Build/FileWatcherEx.1.3.0.nupkg differ
diff --git a/Nuget/FileWatcherEx.nuspec b/Nuget/FileWatcherEx.nuspec
index 2b12700..b21472f 100644
--- a/Nuget/FileWatcherEx.nuspec
+++ b/Nuget/FileWatcherEx.nuspec
@@ -7,11 +7,10 @@
Duong Dieu Phap
Duong Dieu Phap
- 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.
- - Add support for SynchronizingObject property (Cross-thread operation)
+ - Fixed: Error reading the C:\Users\User\Application Data directory
Features: Standardize the events of C# FileSystemWatcher. No false change notifications when a file system item is created, deleted, changed or renamed.
diff --git a/Nuget/build.bat b/Nuget/build.bat
index 559c753..43cbe5e 100644
--- a/Nuget/build.bat
+++ b/Nuget/build.bat
@@ -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
\ No newline at end of file
diff --git a/Source/FileWatcherEx/FileWatcher.cs b/Source/FileWatcherEx/FileWatcher.cs
index 311e741..3f1835e 100644
--- a/Source/FileWatcherEx/FileWatcher.cs
+++ b/Source/FileWatcherEx/FileWatcher.cs
@@ -67,14 +67,16 @@ public FileSystemWatcher Create(string path, Action 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.
}
diff --git a/Source/FileWatcherEx/FileWatcherEx.cs b/Source/FileWatcherEx/FileWatcherEx.cs
index 5a28869..eaaabde 100644
--- a/Source/FileWatcherEx/FileWatcherEx.cs
+++ b/Source/FileWatcherEx/FileWatcherEx.cs
@@ -94,7 +94,7 @@ public void Start()
{
if (!Directory.Exists(this.FolderPath)) return;
-
+
_processor = new EventProcessor((e) =>
@@ -117,7 +117,7 @@ void InvokeChangedEvent(object sender, FileChangedEvent fileEvent)
}
}
-
+
break;
case ChangeType.CREATED:
@@ -136,11 +136,11 @@ void InvokeCreatedEvent(object sender, FileChangedEvent fileEvent)
}
}
-
+
break;
case ChangeType.DELETED:
-
+
InvokeDeletedEvent(this.SynchronizingObject, e);
void InvokeDeletedEvent(object sender, FileChangedEvent fileEvent)
@@ -233,7 +233,7 @@ void onError(ErrorEventArgs e)
// Start watching
this._fsw.EnableRaisingEvents = true;
}
-
+
///
diff --git a/Source/FileWatcherEx/Properties/AssemblyInfo.cs b/Source/FileWatcherEx/Properties/AssemblyInfo.cs
index 4846d73..db96782 100644
--- a/Source/FileWatcherEx/Properties/AssemblyInfo.cs
+++ b/Source/FileWatcherEx/Properties/AssemblyInfo.cs
@@ -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")]