Re: Translations of folder names - two proposals

On Sat, 2004-12-11 at 00:02 +0100, Alexander Larsson wrote:
> On Fri, 2004-12-10 at 17:04 +0000, Alan Cox wrote:
> > On Gwe, 2004-12-10 at 17:57, Dan Winship wrote:
> > > We could also borrow an idea from Mac OS aliases and remember the inode
> > > number of each of the folders, so that if the user does manage to move
> > > or rename one of them behind GNOME's back, we still have a chance of
> > > being able to find it and fix the symlink.
> > 
> > Inodes are not static on all file systems when a file is not open. It is
> > however true enough to be useful especially if combined with a file
> > attribute marker
> Unfortunately there is no "open by inode" or "find by inode" operation,
> so its hard to make use of this information without huge searches.

The user isn't going to move his Pictures folder to
~/cvs/gtk+/docs/reference/tmpl/. Just check each directory directly
under $HOME/, and each sibling or child directory of any of the other
special directories (so they can have ~/Desktop/Documents or
~/Documents/Pictures or whatever) and if you don't find it, give up.

-- Dan

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]