You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "sarutak (via GitHub)" <gi...@apache.org> on 2023/08/10 07:40:12 UTC
[GitHub] [incubator-opendal] sarutak opened a new issue, #2841: oli stat should show `path` as specified by users
sarutak opened a new issue, #2841:
URL: https://github.com/apache/incubator-opendal/issues/2841
When we run `oli stat` for a path, the result show the path with the root omitted.
```
$ oli stat /path/to/file
path: path/to/file
size: 6307
type: file
last-modified: 2023-08-07 22:31:52.987908713 UTC
```
It's especially ugly when we run `oli stat /` because no component appears in the `path:` field.
```
$ oli stat /
path:
size: 264
type: dir
last-modified: 2023-08-08 15:56:44.372627670 UTC
```
On the other hand, Linux's stat show the `File:` field as specified by user.
```
$ stat /path/to/file
File: /path/to/file
Size: 6307 Blocks: 16 IO Block: 4096 regular file
Device: 10304h/66308d Inode: 1328196138 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/ kou) Gid: ( 1000/ kou)
Access: 2023-08-10 04:48:01.320407752 +0900
Modify: 2023-08-08 07:31:52.987908713 +0900
Change: 2023-08-08 07:31:52.987908713 +0900
Birth: -
```
```
$ stat ./myfile
File: ./myfile
Size: 6307 Blocks: 16 IO Block: 4096 regular file
Device: 10304h/66308d Inode: 1328196138 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/ kou) Gid: ( 1000/ kou)
Access: 2023-08-10 04:48:01.320407752 +0900
Modify: 2023-08-08 07:31:52.987908713 +0900
Change: 2023-08-08 07:31:52.987908713 +0900
Birth: -
```
I think it's nice to follow the behavior.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Xuanwo closed issue #2841: oli stat should show `path` as specified by users
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo closed issue #2841: oli stat should show `path` as specified by users
URL: https://github.com/apache/incubator-opendal/issues/2841
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org