cmd/inodes.py

13 lines
295 B
Python
Raw Normal View History

2020-09-29 03:18:18 +00:00
import sys
from voussoirkit import pathclass
def main(argv):
for file in pathclass.cwd().listdir():
if not file.is_file:
continue
print(file.stat.st_dev, file.stat.st_ino, file.relative_path)
if __name__ == '__main__':
raise SystemExit(main(sys.argv[1:]))