While working on #2793 I've stumbled once again over the fact, that broken symbolic links aren't shown by Eclipse at all.
# Create a link to not existing file
ln -s not_existing_file broken
ll broken
lrwxrwxrwx 1 someuser users 5 3. Jul 13:18 broken -> not_existing_file
So from Eclipse one can't see broken files or directory symbolic links & can't remove them.
Sometimes this would be really helpful to see there are broken links in projects, because some files or directories were moved without updating symlinks. In order to warn user about such links, one has to write custom code which would trigger external processes to detect broken FS state. Ideally Eclipse would also include broken symlinks into resources model, so one doesn't need to spawn external processes to detect them.
I have two patches for resources & platform UI, let explore if they are enough or not (I guess few tests would fail).
Below screenshots shows directory which is "empty" in current Eclipse.

While working on #2793 I've stumbled once again over the fact, that broken symbolic links aren't shown by Eclipse at all.
So from Eclipse one can't see broken files or directory symbolic links & can't remove them.
Sometimes this would be really helpful to see there are broken links in projects, because some files or directories were moved without updating symlinks. In order to warn user about such links, one has to write custom code which would trigger external processes to detect broken FS state. Ideally Eclipse would also include broken symlinks into resources model, so one doesn't need to spawn external processes to detect them.
I have two patches for resources & platform UI, let explore if they are enough or not (I guess few tests would fail).
Below screenshots shows directory which is "empty" in current Eclipse.