file_storage/src/path_normalizer library
Functions
-
isWithinDiskPath(
String directory, String path) → bool -
Whether normalized
pathisdirectoryitself or inside it. -
joinDiskPath(
String first, String second) → String - Joins two normalized paths.
-
normalizeDiskPath(
String path, {String? disk}) → String - Normalizes a disk path the way Flysystem does.
-
parentDiskPath(
String path) → String -
The parent folder of a normalized
path;''for the root. -
stripDiskPrefix(
String prefix, String path) → String -
Removes
prefixfrom the front of a normalizedpath.