[Cuis-dev] browsing multiple volumes in Windows

Juan Vuletich juan at jvuletich.org
Wed Nov 24 06:43:14 PST 2021


On 11/24/2021 7:32 AM, David Faitelson via Cuis-dev wrote:
> Dear all,
>
> I've noticed there's a bug in the code for browsing multiple Windows 
> volumes. When I try to open my second volume (P: mounted to some cloud 
> storage provider) it shows me C:
>
> I've tracked down the problem to a bug in FileSystemEntry >> 
> pathComponents: drive:
>
> it does not update 'drive' when the token list is empty, but this is 
> what happens when we ask it to open a root drive.
>
> I've added a statement right at the beginning
>
> self drive: driveStringOrNil.
>
> Which appears to solve the problem.
>
> Cheers,
> David
>
> Dr. David Faitelson
>
> Senior Lecturer
>
> |Office: +972-3-7688782|Mobile: +972-52-6568896
>
> MivtzaKadesh St., Tel-Aviv 38
>
> www.afeka.ac.il <http://www.afeka.ac.il/>
>
>

Hello David,

Thanks! I just pushed to GitHub an update with this. The old version of 
the code was already a bit confusing, so I also refactored it to make it 
shorter and clearer.

Cheers,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20211124/3d13606b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 16213 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20211124/3d13606b/attachment-0001.png>


More information about the Cuis-dev mailing list