Skip to content

Commit

Permalink
forcing fileSystem pointing to correct fileSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
Enzo-Demeulenaere committed Feb 4, 2025
1 parent 7e2a2be commit 7e1a116
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/NewTools-FileBrowser/StDirectoryTreePresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ StDirectoryTreePresenter >> expandPath: aFileLocator [
Smalltalk os isWindows ifTrue: [
currentNode := currentNode asFileReference parent.
aPathForSpec := OrderedCollection new ].

"This code is (a certainly wrong) way to ensure the treeNavigationPresenter widget points to the right fileSystem (that could be a MemoryStore) as it search for roots of the disk and doesn't allow to check in a MemoryStore "
"(currentNode fileReference fileSystem = aFileLocator fileSystem)
ifFalse: [ directoryTreePresenter roots: { StRootDirectoryWrapper on: aFileLocator fileSystem root }.
currentNode fileReference: aFileLocator ]."

path do: [ :aPart |
| subdirs |
Expand Down

0 comments on commit 7e1a116

Please sign in to comment.