removing file by inode

Arne Ludwig arne at
Thu Mar 23 16:46:41 CET 2006

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.

More information about the Python-list mailing list