diff --git a/lua/pl/path.lua b/lua/pl/path.lua index 5979e8e4..48597637 100644 --- a/lua/pl/path.lua +++ b/lua/pl/path.lua @@ -102,6 +102,7 @@ end --- Return the time of last modification -- @string P A file path function path.getmtime(P) + assert_string(1,P) return attrib(P,'modification') end