-
Notifications
You must be signed in to change notification settings - Fork 703
Open
Labels
good first issueGood for newcomersGood for newcomerskind/enhancementImprovements to existing feature.Improvements to existing feature.size/SSmall task. (A couple of hours of work.)Small task. (A couple of hours of work.)
Description
Every createDirectory
call I have is wrapped in
do {
try await fileSystem.createDirectory(at: logsDir, withIntermediateDirectories: true)
} catch let error as FileSystemError where error.code == .fileAlreadyExists {
// ok
}
I doubt this is even correct. What I want is:
- Succeed if nothing exists
- Succeed if a directory already exists at destination
- Fail if a non-directory file exists at destination
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomerskind/enhancementImprovements to existing feature.Improvements to existing feature.size/SSmall task. (A couple of hours of work.)Small task. (A couple of hours of work.)