mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 09:31:16 -03:00
Add a fancy new paths_are_equivalent function to test for equivalent
paths instead of merely equal ones
This commit is contained in:
3
path.h
3
path.h
@@ -73,6 +73,9 @@ bool path_can_be_implicit_cd(const wcstring &path,
|
||||
*/
|
||||
void path_make_canonical(wcstring &path);
|
||||
|
||||
/** Check if two paths are equivalent, which means to ignore runs of multiple slashes (or trailing slashes) */
|
||||
bool paths_are_equivalent(const wcstring &p1, const wcstring &p2);
|
||||
|
||||
bool path_is_valid(const wcstring &path, const wcstring &working_directory);
|
||||
|
||||
/** Returns whether the two paths refer to the same file */
|
||||
|
||||
Reference in New Issue
Block a user