Fixed creating NSURL from folder and filename
This commit is contained in:
parent
20cd16e509
commit
c476483f87
|
@ -6,7 +6,7 @@ import platform.Foundation.*
|
|||
actual class File actual constructor(path: String) : NSURL(fileURLWithPath = path) {
|
||||
|
||||
actual constructor(folder: File, filename: String)
|
||||
: this(NSURL(string = filename, relativeToURL = folder).absoluteString ?: "") // TODO: or use 'fileURLWithPath'?
|
||||
: this(folder.URLByAppendingPathComponent(filename)?.path ?: "")
|
||||
|
||||
|
||||
actual fun getAbsolutePath(): String {
|
||||
|
|
Loading…
Reference in New Issue