The problem is that the FileBrowser resolves symlinks when you enter them.
Expected Behavior
If you click back (..) after entering a symlinked directory, the FileBrowser should send you back to the previous directory.
Current Behavior
If you click back (..) after entering a symlinked directory, the FileBrowser component will send you to the absolute parent of the symlink rather than the directory from which you entered it.
Steps to Reproduce the Problem
-
Set up paths
mkdir workingdir symlinkdir
cd workingdir
ln -s ../symlinkdir
-
open a new jupyter notebook from workingdir
-
paste the following into a cell and run it
from solara.components import FileBrowser
fb = FileBrowser()
fbw = FileBrowser.widget()
fbw
-
Double click on "symlinkdir"
-
Double click on ".."
You end up in the directory above "workingdir" whereas I'd expect to end up inside "workingdir".
The problem is that the FileBrowser resolves symlinks when you enter them.
Expected Behavior
If you click back (..) after entering a symlinked directory, the FileBrowser should send you back to the previous directory.
Current Behavior
If you click back (..) after entering a symlinked directory, the FileBrowser component will send you to the absolute parent of the symlink rather than the directory from which you entered it.
Steps to Reproduce the Problem
Set up paths
open a new jupyter notebook from
workingdirpaste the following into a cell and run it
Double click on "symlinkdir"
Double click on ".."
You end up in the directory above "workingdir" whereas I'd expect to end up inside "workingdir".