Re: inode number in windows XP

2008-01-25 Thread Gabriel Genellina
On 25 ene, 10:28, asit <[EMAIL PROTECTED]> wrote: > why this program shows ambiguous behavior ?? > > st=os.stat(file_name) > print "file size", "=>",st[stat.ST_SIZE] > print "inode number", "=>",st[stat.ST_INO] > print "device inode resides on", "=>",st[stat.ST_DEV] > print "number of links to thi

Re: inode number in windows XP

2008-01-25 Thread Steven D'Aprano
On Fri, 25 Jan 2008 04:28:43 -0800, asit wrote: > why this program shows ambiguous behavior ?? You should read this page, it will help you solve your problem: http://catb.org/~esr/faqs/smart-questions.html -- Steven -- http://mail.python.org/mailman/listinfo/python-list

inode number in windows XP

2008-01-25 Thread asit
why this program shows ambiguous behavior ?? import os import stat import time #import types file_name=raw_input("Enter file name : ") print file_name, "information" st=os.stat(file_name) print "mode", "=>", oct(stat.S_IMODE(st[stat.ST_MODE])) print "type","=>", if stat.S_ISDIR(st[stat.ST_MODE])