4 ms·
Another tool for shell scripting form Python: https://marceltheshell.org https://marceltheshell.org. (Source: https://github.com/geophile/marcel https://github.
by geophile 6y ago
Another tool for shell scripting form Python: https://marceltheshell.org https://marceltheshell.org. (Source: https://github.com/geophile/marcel https://github.com/geophile/marcel.)
E.g.
from marcel.api import *
for file, size in (ls('marcel',
'test',
file=True,
recursive=True) |
map(lambda f: (f.path, f.size))):
print(f'{file}: {size}')