Skip to content

Commit

Permalink
fileexists and is readable
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaurens authored and josephwright committed Feb 3, 2021
1 parent d951558 commit f80cf60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion l3build-file-functions.lua
Expand Up @@ -259,7 +259,7 @@ function fileexists(file)
f:close()
return true
else
return false
return false -- also file exits and is not readable
end
end
Expand Down
4 changes: 2 additions & 2 deletions l3build.dtx
Expand Up @@ -1616,7 +1616,7 @@
% |abspath(|\meta{target}|)|
% \end{syntax}
% Returns a string which gives the absolute location of the
% \meta{target} directory. The \meta{target} directory must exist and be accessible.
% \meta{target} directory.
% \end{function}
%
% \begin{function}{dirname()}
Expand Down Expand Up @@ -1662,7 +1662,7 @@
% \begin{syntax}
% |fileexists(|\meta{file}|)|
% \end{syntax}
% Tests if the \meta{file} exists; returns a boolean value.
% Tests if the \meta{file} exists and is readable; returns a boolean value.
% \end{function}
%
% \begin{function}{filelist()}
Expand Down

0 comments on commit f80cf60

Please sign in to comment.