We should talk when I'm back but my point is that deleting an nonexisting file should raise an error, if deleting an non existig folder does.
Hi
I'm doing a pass on the FileSystem chapter (yes you know the documentation that nobody write but everybody wants to read), I'm updating/adding method comments and I get the following.
paf does not exist
(FileSystem disk workingDirectory / 'paf' ) delete. works without barking
=> may delete should barks to be consistent.
(FileSystem disk workingDirectory / 'paf' ) deleteAll. barks!
(FileSystem disk workingDirectory / 'paf' ) deleteAllChildren. barks!
(FileSystem disk workingDirectory / 'paf' ) deleteIfAbsent: [ Warning signal: ' File does not exist' ] . works
that's fully correct in my opinion. The error message are less consistent. There are operations that only work on files and some that only work on folders. #deleteAll, #deleteAllChildren are only working on directories (much like `rm -R folder`). #delete works on single instances, much like `rm file` but also on folders