#141: ignore hidden files and directories in NzbDir

The files and directories whose names start with dot are now ignored by
the scanner of incoming nzb directory.
This commit is contained in:
Andrey Prygunkov
2016-01-17 12:58:43 +01:00
parent 8f84132218
commit 080bd22d77

View File

@@ -155,6 +155,12 @@ void Scanner::CheckIncomingNzbs(const char* directory, const char* category, boo
DirBrowser dir(directory);
while (const char* filename = dir.Next())
{
if (filename[0] == '.')
{
// skip hidden files
continue;
}
BString<1024> fullfilename("%s%s", directory, filename);
bool isDirectory = FileSystem::DirectoryExists(fullfilename);
// check subfolders