[php-src] Issue #14890: Add function to return file/folder creation time
| From: | RV7PR | Date: | Tue, 09 Jul 2024 14:54:15 +0000 |
| Subject: | [php-src] Issue #14890: Add function to return file/folder creation time | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247262@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/14890
Author: RV7PR
### Description
Currently there is no way of getting the creation time of a folder ("Birth" when using
stat) without using a command like:
```
shell_exec('stat -c %W .')
```
```
File: .
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd00h/64768d Inode: 135399518 Links: 3
Access: (0775/drwxrwxr-x) Uid: ( 1004/acceptpo) Gid: ( 1005/acceptpo)
Access: 2024-07-09 16:32:26.402709986 +0200
Modify: 2024-07-09 16:32:31.806815720 +0200
Change: 2024-07-09 16:32:31.806815720 +0200
Birth: 2023-10-05 11:02:30.038341914 +0200
```
It would be nice to have a function for that.