On 2013-05-22, at 19:53, Stéphane Ducasse <[email protected]> wrote:
> 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
