def finish_check_url(self, bookmark):
# Calculate these attributes even in case of an error
if os.path.exists(self.tempfname):
def finish_check_url(self, bookmark):
# Calculate these attributes even in case of an error
if os.path.exists(self.tempfname):
- size = str(os.stat(self.tempfname).st_size)
+ size = str(os.path.getsize(self.tempfname))
if size[-1] == 'L':
size = size[:-1]
bookmark.size = size
if size[-1] == 'L':
size = size[:-1]
bookmark.size = size
- size = os.stat(filename).st_size
+ size = os.path.getsize(filename)
except:
print filename, ": no such file"
sys.exit(1)
except:
print filename, ": no such file"
sys.exit(1)