OSDN Git Service
(root)
/
kcd
/
KCD.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
staticプロパティをインスタンスプロパティに変更
[kcd/KCD.git]
/
KCD
/
FileManagerExtension.swift
diff --git
a/KCD/FileManagerExtension.swift
b/KCD/FileManagerExtension.swift
index
d36eee0
..
dbf29d8
100644
(file)
--- a/
KCD/FileManagerExtension.swift
+++ b/
KCD/FileManagerExtension.swift
@@
-9,8
+9,11
@@
import Foundation
extension FileManager {
+
func uniqueFileURL(_ url: URL) -> URL {
+
let fileName = _web_pathWithUniqueFilename(forPath: url.path)
+
return URL(fileURLWithPath: fileName)
}
}