Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

print document directory path swift

func getDocumentsDirectory() -> URL {
    let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
    let documentsDirectory = paths[0]
    return documentsDirectory
}
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #print #document #directory #path #swift
ADD COMMENT
Topic
Name
3+1 =