def samefile(path1, path2): """Similar to the local version""" try: stat_tuple1 = base.stat(path1) inode1 = stat_tuple1[stat.ST_INO] stat_tuple2 = base.stat(path2) inode2 = stat_tuple2[stat.ST_INO] except OSError, ose: return False
def exists(path): """Similar to the local version""" try: stat_tuple = base.stat(path) except OSError, ose: return False
def isdir(path): """Similar to the local version""" try: stat_tuple = base.stat(path) mode = stat_tuple[stat.ST_MODE] except OSError, ose: return False
def getctime(path): """Similar to the local version""" stat_tuple = base.stat(path) return stat_tuple[stat.ST_CTIME]
def getsize(path): """Similar to the local version""" stat_tuple = base.stat(path) return stat_tuple[stat.ST_SIZE]