Skip to content

Commit ba76e45

Browse files
committed
Fix browsing FTP
1 parent 98bca3a commit ba76e45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.App/Filesystem/StorageFileHelpers/StorageFileExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public async static Task<StorageFileWithPath> DangerousGetFileWithPathFromPathAs
190190
}
191191
}
192192

193-
var fullPath = (parentFolder is not null && !Path.IsPathRooted(value) && !ShellStorageFolder.IsShellPath(value)) // "::{" not a valid root
193+
var fullPath = (parentFolder is not null && !FtpHelpers.IsFtpPath(value) && !Path.IsPathRooted(value) && !ShellStorageFolder.IsShellPath(value)) // "::{" not a valid root
194194
? Path.GetFullPath(Path.Combine(parentFolder.Path, value)) // Relative path
195195
: value;
196196
var item = await BaseStorageFile.GetFileFromPathAsync(fullPath);
@@ -244,7 +244,7 @@ public async static Task<StorageFolderWithPath> DangerousGetFolderWithPathFromPa
244244
}
245245
}
246246

247-
var fullPath = (parentFolder is not null && !Path.IsPathRooted(value) && !ShellStorageFolder.IsShellPath(value)) // "::{" not a valid root
247+
var fullPath = (parentFolder is not null && !FtpHelpers.IsFtpPath(value) && !Path.IsPathRooted(value) && !ShellStorageFolder.IsShellPath(value)) // "::{" not a valid root
248248
? Path.GetFullPath(Path.Combine(parentFolder.Path, value)) // Relative path
249249
: value;
250250
var item = await BaseStorageFolder.GetFolderFromPathAsync(fullPath);

0 commit comments

Comments
 (0)