Directory functions

  • chdir – It can be used to change directory
  • chroot – It can be used to change the root directory
  • closedir – It closes directory handle
  • dir – It return an instance of the Directory class
  • getcwd – It returns the current working directory
  • opendir – It opens directory handle
  • readdir – It reads entry from directory handle
  • rewinddir – It rewinds directory handle
  • scandir – It lists files and directories of a given path.