Skip to content

Commit

Permalink
start moving away from GsFile in RowanFileService
Browse files Browse the repository at this point in the history
As part of work for GemTalk/Jadeite#986
Add new isDirectory command
  • Loading branch information
ericwinger committed Dec 16, 2022
1 parent 5d7dd8e commit 1306448
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rowan/src/Rowan-Services-Core/RowanFileService.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ RowanFileService >> fileoutMethods: array [
self fileOut: ws on: path
]

{ #category : 'client commands' }
RowanFileService >> isDirectory [
| fileReference |
fileReference := FileReference fileSystem: FileSystem disk path: path asPath.
answer := fileReference isDirectory.
RowanCommandResult addResult: self
]

{ #category : 'client commands' }
RowanFileService >> isDirectory: directory [
answer := GsFile isServerDirectory: directory.
Expand Down

0 comments on commit 1306448

Please sign in to comment.