https://github.com/kanghyojun/lspy
https://github.com/kanghyojun/lspy
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/kanghyojun/lspy
- Owner: kanghyojun
- Created: 2015-01-15T05:06:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-19T16:26:22.000Z (over 11 years ago)
- Last Synced: 2025-02-09T10:29:53.243Z (over 1 year ago)
- Language: Python
- Size: 215 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lspy
[](https://circleci.com/gh/admire93/lspy/tree/master)
implement unix `ls` command in python
## Usage
```python
$ lspy --help
Usage: lspy [OPTIONS] [PATH]
Options:
--all Include directory entries whose names beginwith a dot (.).
--long List in long format.
...
--help Show this message and exit.
$ lspy --long .
drwxr-xr-x me staff 510 1 18 03:20 lspy
-rw-r--r-- me staff 22 1 15 14:42 pytest.ini
-rw-r--r-- me staff 558 1 15 16:17 setup.py
drwxr-xr-x me staff 340 1 18 03:13 tests
```
## Support options
```bash
--all Include directory entries whose names begin with a dot (.).
--long List in long format.
--time sort by modification time.
--changed with --long --time: sort by, and show, ctime with --long: show
ctime and sort by name otherwise: sort by ctime
--accessed with --long --time: sort by, and show, atime with --long: show
atime and sort by name otherwise: sort by atime
--reverse reverse order while sorting
--size sort by file size
--recursive list subdirectories recursively
--human with -l, print sizes in human readable format (e.g., 1K 234M
2G)
--help Show this message and exit.
```