From f533d0bfd8328135d347c874c5c5c36a72e671f7 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 18 Apr 2017 15:40:57 +0200 Subject: [PATCH] doc: fix filesystem.make_parent_directories (#1739) --- lib/gears/filesystem.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/gears/filesystem.lua b/lib/gears/filesystem.lua index cdc841fc..d5296caa 100644 --- a/lib/gears/filesystem.lua +++ b/lib/gears/filesystem.lua @@ -35,11 +35,11 @@ function filesystem.mkdir(dir) return filesystem.make_directories(dir) end ---- Create all parent directories for a given file. +--- Create all parent directories for a given path. -- @tparam string path The path whose parents should be created. -- @return (true, nil) on success, (false, err) on failure -function filesystem.make_parent_directories(file) - return make_directory(Gio.File.new_for_path(file):get_parent()) +function filesystem.make_parent_directories(path) + return make_directory(Gio.File.new_for_path(path):get_parent()) end --- Check if a file exists, is readable and not a directory.