Subject | F Symbolic link in File Dialog |
Article No | F 862 |
Date | F 2010/11/09(Tue) 19:05:09 |
Contributor | F 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
|