Open derneuere opened 3 years ago
Currently, the program does not follow symlink. We have to implemented at the following places.
https://github.com/LibrePhotos/librephotos/blob/5635433012bc80a2a7046f2c6f77dc503213c1b5/api/directory_watcher.py#L130-L134 Should use this when scanning: https://stackoverflow.com/questions/3771696/python-os-walk-follow-symlinks
https://github.com/LibrePhotos/librephotos/blob/5635433012bc80a2a7046f2c6f77dc503213c1b5/api/api_util.py#L47-L54 This is called when choosing a directory. Should also follow symlinks.
path_to_dict does not yet follow symlinks
To support symlink scanning, isn't this all it takes after os.path.join (?) ;
if os.path.islink(fpath): fpath = os.readlink(fpath)
https://github.com/LibrePhotos/librephotos/blob/f99027a66ea62d304d838fb6e0a68a65fc3e08c9/api/directory_watcher.py#L170-L174
Currently, the program does not follow symlink. We have to implemented at the following places.
https://github.com/LibrePhotos/librephotos/blob/5635433012bc80a2a7046f2c6f77dc503213c1b5/api/directory_watcher.py#L130-L134 Should use this when scanning: https://stackoverflow.com/questions/3771696/python-os-walk-follow-symlinks
https://github.com/LibrePhotos/librephotos/blob/5635433012bc80a2a7046f2c6f77dc503213c1b5/api/api_util.py#L47-L54 This is called when choosing a directory. Should also follow symlinks.