JohnSundell / Files

A nicer way to handle files & folders in Swift
MIT License
2.53k stars 182 forks source link

Unable to get hidden files #128

Open CraigSiemens opened 2 years ago

CraigSiemens commented 2 years ago

I've got a script where I'm trying to work with a hidden .swiftlint.yml file. As far as I can tell Files doesn't allow working with hidden files, it always shows a missing error when trying to access one. Is that correct or am I missing something?

My current work around is to use URLs.

let fileURL = folder
    .url
    .appendingPathComponent(".swiftlint.yml")