Commit 28b7e5ce authored by Drew's avatar Drew

No longer inserting relative paths

parent d0dfc60f
Pipeline #713 passed with stage
......@@ -16,6 +16,9 @@ extension String {
var pathWithTrailingSlash: String {
if self.hasSuffix("/") { return self }
else if self.characters.count > 0 { return self + "/" }
else { return NSFileManager.defaultManager().currentDirectoryPath + "/" }
else {
//some clients, like collectSources, need relative paths. We shouldn't insert an absolute path if we didn't get one.
return ""
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment