title |
---|
filesystem |
[TOC]
Module for filesystem interactions.
Boolean constant indicating whether the current platform is Windows.
Character constant representing the path separator for the current platform. On Windows, it is \
. On other platforms, it is /
.
Experimental
Determines if a file or directory exists at the given path by returning a logical value.
exists =
[[stdlib_filesystem(module):exists(function)]] (path)
path
: Shall be a character expression containing the path to a file or directory to check for existence.
A logical value indicating whether a file or directory exists at the given path.
Experimental
Lists the contents of a directory.
call
[[stdlib_filesystem(module):list_dir(subroutine)]] (dir, files[, iostat][, iomsg])
dir
: Shall be a character expression containing the path to the directory to list.
files
: Shall be an allocatable rank-1 array of type string_type
that will contain the names of the files and directories in the directory.
iostat
: Shall be a scalar of type integer
that receives the error status of list_dir
. Optional argument.
iomsg
: Shall be a deferred length character variable that receives the error message of list_dir
. Optional argument.
Experimental
Creates a new directory.
call
[[stdlib_filesystem(module):mkdir(subroutine)]] (dir[, iostat][, iomsg])
dir
: Shall be a character expression containing the path to the directory to create.
iostat
: Shall be a scalar of type integer
that receives the error status of mkdir
. Optional argument.
iomsg
: Shall be a deferred length character variable that receives the error message of mkdir
. Optional argument.
Experimental
Removes a directory.
call
[[stdlib_filesystem(module):rmdir(subroutine)]] (dir)
dir
: Shall be a character expression containing the path to the directory to remove.
Experimental
Runs a command in the shell.
call
[[stdlib_filesystem(module):run(subroutine)]] (command[, iostat][, iomsg])
command
: Shall be a character expression containing the command to run in the shell.
iostat
: Shall be a scalar of type integer
that receives the error status of run
. Optional argument.
iomsg
: Shall be a deferred length character variable that receives the error message of run
. Optional argument.