Skip to content

Commit

Permalink
safer ensureCreateDirectory:
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-krivanek committed Oct 21, 2019
1 parent 66caaab commit 8dd4a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileSystem-Core/FileSystemStore.class.st
Expand Up @@ -249,7 +249,7 @@ FileSystemStore >> directoryAt: aPath nodesDo: aBlock [

{ #category : #public }
FileSystemStore >> ensureCreateDirectory: aPath [
(self isDirectory: aPath) ifTrue: [ ^ self ].
((self exists: aPath) and: [ self isDirectory: aPath]) ifTrue: [ ^ self ].
self ensureCreateDirectory: aPath parent.
self createDirectory: aPath
]
Expand Down

0 comments on commit 8dd4a9c

Please sign in to comment.