I'm trying to write a simple script that looks at various files and manipulates them depending on file size, but I've tried both :
os.stat(path + fname).st_size
and
os.path.getsize(path + fname)
but both return a result of '0'. I'm running Kubuntu but the file system is NTFS formatted, could this be the problem, or does anyone have any reason why this may be happening?
** EDIT **
Somehow all my files have been emptied of all their data. Please ignore this, the filesize is being reported correct.