file_storage/src/path_normalizer library

Functions

isWithinDiskPath(String directory, String path) → bool
Whether normalized path is directory itself 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 prefix from the front of a normalized path.