Bug fix #262 : 'file not found' after moved dir
This commit is contained in:
parent
0a6e55dcb7
commit
42c0648ba7
1 changed files with 2 additions and 1 deletions
|
|
@ -134,7 +134,8 @@ namespace FileManager
|
||||||
|
|
||||||
private void AddPath(string path)
|
private void AddPath(string path)
|
||||||
{
|
{
|
||||||
if (!File.Exists(path)) return;
|
if (!File.Exists(path) && !Directory.Exists(path))
|
||||||
|
return;
|
||||||
if (File.GetAttributes(path).HasFlag(FileAttributes.Directory))
|
if (File.GetAttributes(path).HasFlag(FileAttributes.Directory))
|
||||||
AddUniqueFiles(FileUtility.SaferEnumerateFiles(path, SearchPattern, SearchOption));
|
AddUniqueFiles(FileUtility.SaferEnumerateFiles(path, SearchPattern, SearchOption));
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue