command/file, storage/{nfs,smbclient}: use PathTraitsFS::IsSpecialFilename()
Eliminate some duplicate code.
This commit is contained in:
@@ -307,9 +307,7 @@ gcc_pure
|
||||
static bool
|
||||
SkipNameFS(PathTraitsFS::const_pointer_type name) noexcept
|
||||
{
|
||||
return name[0] == '.' &&
|
||||
(name[1] == 0 ||
|
||||
(name[1] == '.' && name[2] == 0));
|
||||
return PathTraitsFS::IsSpecialFilename(name);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user