Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print filesizes with ls command #35

Closed
kanalizator opened this issue Dec 2, 2017 · 2 comments
Closed

print filesizes with ls command #35

kanalizator opened this issue Dec 2, 2017 · 2 comments

Comments

@kanalizator
Copy link

Hello, thanks for this wonderful utility.
Only thing I am missing is file size info for ls command - it would be the easiest check if the file is same as on my PC.
So i suggest adding something like -l parameter to show more about files, than just names.

Thanks.

@ladyada
Copy link
Collaborator

ladyada commented Feb 8, 2018

@tdicola next tidyday, implement this with an -l parameter as suggested (to mimic "ls -l")

@tdicola
Copy link
Contributor

tdicola commented Feb 20, 2018

This is implemented now in the latest master branch code. Note that MicroPython doesn't calculate the size of directories and there's no way to detect a file from directory so they'll show as 0 bytes.

tony-imac:mpy tony$ ampy ls -l
test.txt - 34 bytes
test2.txt - 35 bytes
test - 0 bytes
.fseventsd - 0 bytes
lib - 0 bytes
Windows 7 Driver - 0 bytes
.metadata_never_index - 0 bytes
.Trashes - 0 bytes
boot_out.txt - 80 bytes
README.txt - 2103 bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants