Re: removing file by inode

2006-03-23 Thread Arne Ludwig
Actually under Linux he could probably pipe "clri %d" to debugfs if that is what he wanted to do. On the other hand he said "unix environment" which could be anything really. -- http://mail.python.org/mailman/listinfo/python-list

Re: removing file by inode

2006-03-23 Thread Arne Ludwig
> under SunOS there was a way to delete a file given it's i-node. Yes and no. You probably mean "clri" which cleared the inode, but did not "remove the file", i.e. all the entries in directories pointing to it. In older Unices there was also "ncheck" to find the filesystem names for inode numbers

Re: removing file by inode

2006-03-23 Thread Grant Edwards
On 2006-03-23, Arne Ludwig <[EMAIL PROTECTED]> wrote: > Good answer. :) I seriously doubt it is possible except for the > trivial solution: [...] I don't know if there is a Linux equivalent, but under SunOS there was a way to delete a file given it's i-node. And that's all it did was delete th

Re: removing file by inode

2006-03-23 Thread Arne Ludwig
Good answer. :) I seriously doubt it is possible except for the trivial solution: def remove_a_file(inode): os.system ("find / -inum %d | xargs rm -f" % (inode)) PS. Don't blame me if this function destroys your hard disk. I wrote it off the top of my head. -- http://mail.python.org/mailm

Re: removing file by inode

2006-03-23 Thread Grant Edwards
On 2006-03-23, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > is it possible to remove a file by it's inode and not it's filename > using Python? What do you mean "remove a file"? -- Grant Edwards grante Yow! Life is a POPULARITY

removing file by inode

2006-03-22 Thread s99999999s2003
hi this is pertain to unix environment. is it possible to remove a file by it's inode and not it's filename using Python? Just curious... thanks. -- http://mail.python.org/mailman/listinfo/python-list