mirror of
https://github.com/nzbget/nzbget.git
synced 2026-05-19 10:34:28 -04:00
#130: improved class DirBrowser
It doesn’t return filenames ‘.’ and ‘..’ (for current and parent directories) anymore, eliminating the need to check and ignore these names on each usage of the class.
This commit is contained in:
@@ -187,7 +187,7 @@ void Scanner::CheckIncomingNzbs(const char* directory, const char* category, boo
|
||||
BString<1024> fullfilename("%s%s", directory, filename);
|
||||
bool isDirectory = Util::DirectoryExists(fullfilename);
|
||||
// check subfolders
|
||||
if (isDirectory && strcmp(filename, ".") && strcmp(filename, ".."))
|
||||
if (isDirectory)
|
||||
{
|
||||
fullfilename[strlen(fullfilename) + 1] = '\0';
|
||||
fullfilename.AppendFmt("%c", PATH_SEPARATOR);
|
||||
|
||||
Reference in New Issue
Block a user