mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUETools: Don't abort folder scan when failed to read attributes of a file, for example a symlink to an inaccessible target.
This commit is contained in:
@@ -4091,8 +4091,16 @@ namespace CUETools.Processor
|
||||
{
|
||||
// file.Refresh();
|
||||
// file.Attributes returns -1 for long paths!!!
|
||||
if ((file.Attributes & FileAttributes.Hidden) != 0)
|
||||
try
|
||||
{
|
||||
|
||||
if ((file.Attributes & FileAttributes.Hidden) != 0)
|
||||
continue;
|
||||
}
|
||||
catch (UnauthorizedAccessException)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if ((file.Attributes & FileAttributes.Directory) != 0)
|
||||
{
|
||||
// foreach (FileSystemInfo subfile in ((DirectoryInfo)e.file).GetFileSystemInfos())
|
||||
|
||||
Reference in New Issue
Block a user