dm_file_size Function

public function dm_file_size(path, error) result(sz)

Returns file size in file storage units (usually, bytes). On error, size is 0 and the error code E_NOT_FOUND is returned in dummy argument error.

Arguments

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

File path.

integer, intent(out), optional :: error

Error code.

Return Value integer(kind=i8)