Dawid Wąsowski
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
11 additions and
1 deletions
-
src/Avalonia.Base/Platform/Storage/FileIO/BclStorageItem.cs
|
|
|
@ -58,7 +58,17 @@ internal abstract class BclStorageItem(FileSystemInfo fileSystemInfo) : IStorage |
|
|
|
_ => null |
|
|
|
}; |
|
|
|
|
|
|
|
internal static void DeleteCore(FileSystemInfo fileSystemInfo) => fileSystemInfo.Delete(); |
|
|
|
internal static void DeleteCore(FileSystemInfo fileSystemInfo) |
|
|
|
{ |
|
|
|
if (fileSystemInfo is DirectoryInfo directoryInfo) |
|
|
|
{ |
|
|
|
directoryInfo.Delete(true); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
fileSystemInfo.Delete(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
internal static Uri GetPathCore(FileSystemInfo fileSystemInfo) |
|
|
|
{ |
|
|
|
|