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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]