README 592 B

1234567891011121314151617181920
  1. This is a simple example program that shows how to use the is_dir, is_file,
  2. file_exists, is_readable, is_writable, functions of the igl library
  3. To Build:
  4. make
  5. To Run:
  6. ./example [path_1] [path_2] ... [path_n]
  7. Example Run #1:
  8. Issuing:
  9. touch not-writable
  10. touch not-readable
  11. chmod u-r not-readable
  12. chmod u-w not-writable
  13. ./example / . .. example.cpp non-existant-file not-readable not-writable > output
  14. php example.php / . .. example.cpp non-existant-file not-readable not-writable > php-output
  15. diff php-output output
  16. should produce no differences