Currently FileManager.isDeletableFile is marked as NSUnimplemented and I was wondering if the correct implementation is as simple as the methods above it with the flag _DELETE_OK. Namely the methods: isReadableFile, isWritableFile, and isExecutableFile; the implementations of which are included below.
@millenomi Oh, I think you misunderstood my question, those 3 methods are already implemented. I was wondering if isDeletableFile would be the same with _DELETE_OK flag, but it seems not.
Also the three methods above don't appear to be used in any tests or in any method anywhere for that matter and I was wondering if there are tests in the Darwin Implementation I could use to base new tests off of.
_DELETE_OK, from what I see, is a Darwin constant — we need an implementation that will work across platforms. The way Foundation does things on Darwin does not use _DELETE_OK in that way, and I'd prefer to calque that in Swift carefully to preserve behavior bug-for-bug.