Permalink
Browse files

Ignore Recycle Bin!

  • Loading branch information...
da3dsoul committed Mar 14, 2018
1 parent fc682cf commit 985a1f4ac1cdcee5818abb10ebfd6e4a6e8d73ae
Showing with 2 additions and 1 deletion.
  1. +2 −1 Shoko.Server/Import/Importer.cs
@@ -270,7 +270,7 @@ public static void RunImport_ScanFolder(int importFolderID)
// Get Ignored Files and remove them from the scan listing
var ignoredFiles = RepoFactory.VideoLocal.GetIgnoredVideos().SelectMany(a => a.Places)
.Select(a => a.FullServerPath).Where(a => !string.IsNullOrEmpty(a)).ToList();
.Select(a => a.FullServerPath).Where(a => !string.IsNullOrEmpty(a) ).ToList();
fileList = fileList.Except(ignoredFiles, StringComparer.InvariantCultureIgnoreCase).ToList();
// get a list of all files in the share
@@ -283,6 +283,7 @@ public static void RunImport_ScanFolder(int importFolderID)
if (fldr.IsDropSource == 1)
dictFilesExisting[fileName].RenameAndMoveAsRequired();
}
if (fileName.Contains("$RECYCLE.BIN")) continue;
filesFound++;
logger.Trace("Processing File {0}/{1} --- {2}", i, fileList.Count, fileName);

0 comments on commit 985a1f4

Please sign in to comment.