mirror of
https://github.com/nzbget/nzbget.git
synced 2026-05-07 21:12:36 -04:00
#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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user