3 library(filesex): Extended operations on files
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog C-library
        • library(filesex): Extended operations on files
          • set_time_file/3
          • link_file/3
          • relative_file_name/3
          • directory_file_path/3
          • directory_member/3
          • copy_file/2
          • make_directory_path/1
          • copy_directory/2
          • delete_directory_and_contents/1
          • delete_directory_contents/1
          • chmod/2
Availability::- use_module(library(filesex)).(can be autoloaded)
Source[det]directory_file_path(+Directory, +File, -Path)
[det]directory_file_path(?Directory, ?File, +Path)
True when Path is the full path-name for File in Dir. This is comparable to atom_concat(Directory, File, Path), but it ensures there is exactly one / between the two parts. Notes:

  • In mode (+,+,-), if File is given and absolute, Path is unified to File.
  • Mode (-,-,+) uses file_directory_name/2 and file_base_name/2