Skip to content

Commit

Permalink
Merge pull request pharo-project#5041 from akgrant43/copyFileAndDeleteto
Browse files Browse the repository at this point in the history
FileSystem>>copyFileAndDelete:to: don't raise a FileDoesNotExistException if the destination doesn't exist
  • Loading branch information
MarcusDenker committed Nov 5, 2019
2 parents 8230100 + a3b3332 commit 306da59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileSystem-Core/FileSystem.class.st
Expand Up @@ -252,7 +252,7 @@ FileSystem >> copyFileAndDelete: sourcePath to: destination [
[self copy: sourcePath toReference: destination]
on: Error
do: [ :error |
destination delete.
destination ensureDelete.
error signal].
self delete: sourcePath.
^destination
Expand Down

0 comments on commit 306da59

Please sign in to comment.