support live container
This commit is contained in:
1 parent
50f25eac08
commit
582efbacbf
1 file changed
+6
-1
@@ -16,7 +16,12 @@ class SymHandler {
|
||||
}
|
||||
|
||||
private static func getSymlinkURL() -> URL {
|
||||
return getDocumentsDirectory().appendingPathComponent(".Trash", conformingTo: .symbolicLink)
|
||||
let lcPath = ProcessInfo.processInfo.environment["LC_HOME_PATH"]
|
||||
var docsDir = getDocumentsDirectory()
|
||||
if let lcPath = lcPath {
|
||||
docsDir = URL(fileURLWithPath: "\(lcPath)/Documents")
|
||||
}
|
||||
return docsDir.appendingPathComponent(".Trash", conformingTo: .symbolicLink)
|
||||
}
|
||||
|
||||
// MARK: Symlink Creation
|
||||
|
||||
Reference in new issue
Block a user