Swift 3.0 FileManager.fileExists(atPath:) always return false

前端 未结 7 2127
一向
一向 2021-02-05 00:38

When I use method .fileExists(atPath:)to judge whether the file is exist in file system, the method always return false to me. I checked the file system and the fil

相关标签:
7条回答
  • 2021-02-05 01:14

    I had the same problem this worked for me

    filePath.replacingOccurrences(of: "file://", with: "")
    
    0 讨论(0)
提交回复
热议问题