mxcl / Path.swift

Delightful, robust, cross-platform and chainable file-pathing functions.
The Unlicense
946 stars 36 forks source link

`delete()` shouldn’t throw if no file #11

Closed mxcl closed 5 years ago

mxcl commented 5 years ago

Thus consistent with mkdir()

But we should have a consistent flag to relevant functions to suppress this.

Should consider removing mkpath too and instead doing mkdir with a flag.

Could do eg:

try mkdir(.p)
try mkdir()
try ls(.a)
try ls()