ls includes requested path as file
See original GitHub issueExample:
>>> fs.ls('my-bucket/Files', details=True)
[
{
'ETag': '"d23d8cd98f00b204e9800008ecf8427e"',
'Key': my-bucket/Files/',
'LastModified': datetime.datetime(2020, 3, 11, 11, 49, 10, tzinfo=tzutc()),
'Size': 0,
'StorageClass': 'STANDARD',
'name': 'my-bucket/Files/',
'size': 0,
'type': 'file',
}
]
I’d argue that ls
shouldn’t return itself, but at the very least it should be of type == ‘directory’
Issue Analytics
- State:
- Created 3 years ago
- Comments:24 (10 by maintainers)
Top Results From Across the Web
ls - List file and directory names and attributes - IBM
ls lists files and directories. If the pathname is a file, ls displays information about the file according to the requested options. If...
Read more >ls -- list file and directory names and attributes - MKS Toolkit
DESCRIPTION. ls lists files and directories. If the pathname is a file, ls displays information on the file according to the requested options....
Read more >Print only full paths of files and directories using `ls` - Super User
For a given directory the request is to print ...
Read more >List all files (with full paths) in a directory (and subdirectories ...
Save this question. Show activity on this post. I'd like to construct a Linux command to list all files (with their full paths)...
Read more >request: jfrog rt ls · Issue #198 - GitHub
I would love being able to list files or directories from a artifactory path, ignoring subfolder. Example: $ jfrog rt ls repo/path/to/foder.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
And with that this issue is larger than just
ls
sincerm(path, recursive=True)
does not delete folders.Created here: https://github.com/dask/s3fs/issues/317