diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-08-27 18:26:22 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-08-27 18:26:22 -0700 |
commit | 24f1da7f309f7e7077e265e1777c9da46ff65e37 (patch) | |
tree | 25f6278f07e4a6c463e999bb4c3384f7f59e9fac /path.h | |
parent | 85ce80d72e666d51b52f8a54e8143062478286e4 (diff) |
Add a fancy new paths_are_equivalent function to test for equivalent
paths instead of merely equal ones
Diffstat (limited to 'path.h')
-rw-r--r-- | path.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |