sarutak opened a new pull request, #2842:
URL: https://github.com/apache/incubator-opendal/pull/2842
Related issue: #2841
This PR proposes to change `oli stat` to show the result of `path` field
like as Linux's `stat`.
Before this change, when we run `oli stat` for a path, the root is omitted.
```
$ oli stat /path/to/file
path: path/to/file
size: 6307
type: file
last-modified: 2023-08-07 22:31:52.987908713 UTC
```
After this change, the root is prepended.
```
$ oli stat /path/to/file
path: path/to/file
size: 6307
type: file
last-modified: 2023-08-07 22:31:52.987908713 UTC
```
Also, a path are shown as specified by users like Linux's `stat` does.
```
$ 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: -
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]