Jump to content
Muxe Inc Forums
Sign in to follow this  
GPFault

File operations with symbolic link dirs

Recommended Posts

GPFault    0

Hi.

NDN file operations doesn`t support symbolic links:

The worst problem, i think is deletion: NDN treates symbolic links in linux as folders and tries to delete all it content. This may be VERY dangerous. Imagine that you want to delete folder with a lot of content. And deep in it there is a symlink to another place you don`t want to delete.(f.ex. many projects may have symlink to one library) NDN delete ALL content under the link. But it can`t delete the link(because link should be deleted with file api not the dir api in linux). This behaviour is opposite to other linux tools. They all only delete the link(and this seems correct to me).

The same problems are in copy operations but they are not such dangerous.

Also there are same problems with windows NT symlinks(but fortunately they are not such popular as linux symlinks).

 

So, imho, problem with deletion is really BUG (at least in lnx) and not the lack of feature.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×