doc: fix filesystem.make_parent_directories (#1739)

This commit is contained in:
Daniel Hahler 2017-04-18 15:40:57 +02:00 committed by GitHub
parent e0eb0f14b3
commit f533d0bfd8
1 changed files with 3 additions and 3 deletions

View File

@ -35,11 +35,11 @@ function filesystem.mkdir(dir)
return filesystem.make_directories(dir) return filesystem.make_directories(dir)
end 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. -- @tparam string path The path whose parents should be created.
-- @return (true, nil) on success, (false, err) on failure -- @return (true, nil) on success, (false, err) on failure
function filesystem.make_parent_directories(file) function filesystem.make_parent_directories(path)
return make_directory(Gio.File.new_for_path(file):get_parent()) return make_directory(Gio.File.new_for_path(path):get_parent())
end end
--- Check if a file exists, is readable and not a directory. --- Check if a file exists, is readable and not a directory.