List a directory
Read a file
Get a directory tree
tree() returns a recursive listing of all files and directories under a path. Useful for getting a full picture of what’s available:
Check file metadata
stat() returns metadata for a single file or directory without reading its contents: