doc: fix filesystem.make_parent_directories (#1739)
This commit is contained in:
parent
e0eb0f14b3
commit
f533d0bfd8
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue