[latex3-commits] [git/LaTeX3-latex3-l3build] master: fileexists and is readable (f80cf60)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Feb 3 17:03:26 CET 2021


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/f80cf60af2fffe4e5df013f38713a6d1fcde0102

>---------------------------------------------------------------

commit f80cf60af2fffe4e5df013f38713a6d1fcde0102
Author: LAURENS Jérôme <jerome.laurens at u-bourgogne.fr>
Date:   Wed Feb 3 15:11:27 2021 +0100

    fileexists and is readable


>---------------------------------------------------------------

f80cf60af2fffe4e5df013f38713a6d1fcde0102
 l3build-file-functions.lua | 2 +-
 l3build.dtx                | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/l3build-file-functions.lua b/l3build-file-functions.lua
index c904742..9c8dd06 100644
--- a/l3build-file-functions.lua
+++ b/l3build-file-functions.lua
@@ -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
 
diff --git a/l3build.dtx b/l3build.dtx
index bedbdfe..b94917e 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -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()}
@@ -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()}





More information about the latex3-commits mailing list.