[Go to BBS]
All articles in a thread
SubjectF Symbolic link in File Dialog
Article NoF 862
DateF 2010/11/09(Tue) 19:05:09
ContributorF Noboru@J-PARC
Hi,

I got a claim from several users of SAD in J-PARC, saying that FileDialog in SAD failed to list symbolic links in a FileDialog.
I traced the script Packages/FileDialog.n and found that KBF$ListFiles function uses "ls -lnt" to get directory infomation.
And also a symbolic link, which has "l" as a first character in output lines, is ignored.

Possible cure to this symptom is to replace "ls -lnt" with "ls -lntL", then links just looks like in the output from the command
and SAD FileDialog will show them as directories.

I tested it and this trick seems working.

I would greatly appreciate if you can included it in the future release of SAD.

Thanks.

Noboru