allister11/10/2022, 7:52 AM
Stefano Bonicatti11/10/2022, 2:28 PM
table that detects if a file is a symlink or not. I think it might make sense to have an optional column where we use the
API (on Unix) to read the symlink target, but from there it’s a bit tricky.
The symlink could point to another symlink; the
API always reads the “contents” of the first symlink but doesn’t expand it further. In that case if you want the path to be expanded until you find a file, we would have to put a depth limit.
At the same time while the symlink may point to a real file, the path itself could be composed by symlinks; not sure if that’s something that you would need too.. but that’s likely even more tricky and potentially performance intensive depending on the number of symlinks to chase
allister11/10/2022, 3:09 PM