Browse Source

Fixed is empty method

Marcel Baumgartner 2 years ago
parent
commit
08e4a9df22
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Moonlight/App/Services/StorageService.cs

+ 1 - 1
Moonlight/App/Services/StorageService.cs

@@ -39,7 +39,7 @@ public class StorageService
 
 
     private bool IsEmpty(string path)
     private bool IsEmpty(string path)
     {
     {
-        return !Directory.EnumerateFiles(path).Any();
+        return !Directory.EnumerateFileSystemEntries(path).Any();
     }
     }
     private static void CopyFilesRecursively(string sourcePath, string targetPath)
     private static void CopyFilesRecursively(string sourcePath, string targetPath)
     {
     {