Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Document trailing-slash preservation behaviour.

  • Loading branch information...
commit b64a27419bb2b655266eb76f809367c590d037ae 1 parent 3c3d929
Mike authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  KSPathUtilities.h
View
2  KSPathUtilities.h
@@ -11,7 +11,9 @@
@interface NSString (KSPathUtilities)
+// Will preserve any trailing slashes that are part of self
- (NSString *)ks_pathRelativeToDirectory:(NSString *)otherPath;
+
- (BOOL)ks_isSubpathOfPath:(NSString *)aPath; // Does aPath contain self?
// NSString has built-in methods for standardizing a path, but they consult the filesystem for symlinks. This method only looks at the path itself
Please sign in to comment.
Something went wrong with that request. Please try again.