aboutsummaryrefslogtreecommitdiffhomepage
path: root/path.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-08-27 18:26:22 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-08-27 18:26:22 -0700
commit24f1da7f309f7e7077e265e1777c9da46ff65e37 (patch)
tree25f6278f07e4a6c463e999bb4c3384f7f59e9fac /path.h
parent85ce80d72e666d51b52f8a54e8143062478286e4 (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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/path.h b/path.h
index a566501e..b822f6e9 100644
--- a/path.h
+++ b/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 */