[Cuis-dev] FileList preference

Gerald Klix cuis.01 at klix.ch
Sat May 7 13:46:01 PDT 2022


FileList>>#initialDirectoryList is method to handle this stuff. It should read #roots.
On Windows there are multiple roots aka. drives.
Do I get this right, #roots is the initial value, and #(roots image vm current) are the possible values?

Yes the implementation makes use of the run-time type information, if it's not symbol, it's a set of directory entries.
Imagine a windows computer with two local drives and a remote drive, You can define both local drives as roots,
thus ignoring the remote drive. On a Unix system you may add your Cuis working directory and perhaps some assorted
other directories, probably from your Cuis git workspace.

I hope this clarifies it. I had to look at the code to remember what I intended with that implementation.

HTH,
Gerald
On May 7 2022, at 10:22 pm, Hilaire Fernandes via Cuis-dev <cuis-dev at lists.cuis.st> wrote:
>
> Ok. In that case, I think the type for #initialFileListDirectories could be
> #(root image vm current misc) where #misc means the preference value is a DirectoryEntry instance. Most of the behavior will have to be move to FileList though, but you will just need to adjust as:
>
>
> PreferenceNG at: #initialFileListDirectories put: '/tmp/' asDirectoryEntry
> PreferenceNG at: #initialFileListDirectories put: #root
>
>
> Will it do it?
> Hilaire
>
>
> Le 07/05/2022 à 19:06, Gerald Klix a écrit :
> > Works for me, that means works in Haver.
> >
> > On May 7 2022, at 7:03 pm, Gerald Klix via Cuis-dev <cuis-dev at lists.cuis.st> (mailto:cuis-dev at lists.cuis.st) wrote:
> > > Probably broken. I will investiage.
> > >
> > > On May 7 2022, at 6:41 pm, Hilaire Fernandes via Cuis-dev <cuis-dev at lists.cuis.st> (mailto:cuis-dev at lists.cuis.st) wrote:
> > > >
> > > > Hi,
> > > >
> > > >
> > > > For the FileList tool there is this #initialFileListDirectories preference. It can accept symbol as #root, #image, etc or a Set with DirectoryEntry (?). This is not uniform type.
> > > > For now I implemented this preference as below:
> > > > #(initialFileListDirectories #roots #(root image vm current) )
> > > > I understand this preference is used with FileList to change the initial directory. I try to use the feature for an arbitrary initial directory without success (image locked)
> --
> GNU Dr. Geo
> http://drgeo.euhttp://blog.drgeo.eu
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220507/c6a63e41/attachment.htm>


More information about the Cuis-dev mailing list