diff --git a/src/Files.App/Filesystem/StorageFileHelpers/StorageFileExtensions.cs b/src/Files.App/Filesystem/StorageFileHelpers/StorageFileExtensions.cs index cbd1cf8db959..f6022062c9ad 100644 --- a/src/Files.App/Filesystem/StorageFileHelpers/StorageFileExtensions.cs +++ b/src/Files.App/Filesystem/StorageFileHelpers/StorageFileExtensions.cs @@ -317,6 +317,9 @@ private static PathBoxItem GetPathItem(string component, string path) } else { + if (path.EndsWith('\\') || path.EndsWith('/')) + path = path.Remove(path.Length - 1); + return new PathBoxItem { Title = component,