530
530
return os.path.getsize(self.id2abspath(file_id))
535
536
return self._hashcache.get_sha1(path)
539
540
return self._inventory[file_id].executable
542
545
mode = os.lstat(self.abspath(path)).st_mode
543
546
return bool(stat.S_ISREG(mode) and stat.S_IEXEC&mode)