You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
336 B

  1. #pragma once
  2. #include "file.h"
  3. namespace cppfs
  4. {
  5. /* file */
  6. template<typename... T_args>
  7. file::file(T_args&&... p_args)
  8. : _path(std::forward<T_args>(p_args)...)
  9. { }
  10. const cppfs::path& file::path() const
  11. { return _path; }
  12. bool file::exists() const
  13. { return _path.is_file(); }
  14. }