dm_file_touch Subroutine

public subroutine dm_file_touch(path, modified, error)

Uses

  • proc~~dm_file_touch~~UsesGraph proc~dm_file_touch dm_file_touch module~dm_time dm_time proc~dm_file_touch->module~dm_time module~dm_error dm_error module~dm_time->module~dm_error module~dm_kind dm_kind module~dm_time->module~dm_kind module~dm_util dm_util module~dm_time->module~dm_util unix unix module~dm_time->unix module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env module~dm_util->module~dm_error module~dm_util->module~dm_kind

Creates empty file at given file path and optionally changes last modification date/time. This routine executes /usr/bin/touch internally.

The subroutine returns the following error codes in error:

  • E_FORMAT if length of path is invalid.
  • E_INVALID if modified is not in ISO 8601 format.
  • E_IO if command execution failed.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: path

File to create.

character(len=TIME_LEN), intent(in), optional :: modified

UTC modification date and time to use instead of the current time (ISO 8601).

integer, intent(out), optional :: error

Error code.


Calls

proc~~dm_file_touch~~CallsGraph proc~dm_file_touch dm_file_touch proc~dm_time_is_valid dm_time_is_valid proc~dm_file_touch->proc~dm_time_is_valid interface~dm_present dm_present proc~dm_time_is_valid->interface~dm_present proc~dm_ascii_is_digit dm_ascii_is_digit proc~dm_time_is_valid->proc~dm_ascii_is_digit

Called by

proc~~dm_file_touch~~CalledByGraph proc~dm_file_touch dm_file_touch proc~dm_ghostscript_ps_to_pdf dm_ghostscript_ps_to_pdf proc~dm_ghostscript_ps_to_pdf->proc~dm_file_touch proc~dm_roff_to_pdf dm_roff_to_pdf proc~dm_roff_to_pdf->proc~dm_file_touch proc~dm_roff_to_ps dm_roff_to_ps proc~dm_roff_to_ps->proc~dm_file_touch