minetest_x_bows/bin/lua-language-server-3.5.6-l.../script/meta/bee/filesystem.lua
2022-11-03 11:37:33 -04:00

105 lines
1.5 KiB
Lua

---@class fs.path
---@operator div: fs.path
local fsPath = {}
---@return string
function fsPath:string()
end
---@return fs.path
function fsPath:parent_path()
end
---@return boolean
function fsPath:is_relative()
end
---@return fs.path
function fsPath:filename()
end
---@return fs.path
function fsPath:stem()
end
---@return fs.path
function fsPath:extension()
end
---@class fs.status
local fsStatus = {}
---@return string
function fsStatus:type()
end
---@class fs
local fs = {}
---@class fs.copy_options
---@field overwrite_existing integer
local copy_options
fs.copy_options = copy_options
---@param path string
---@return fs.path
function fs.path(path)
end
---@return fs.path
function fs.exe_path()
end
---@param path fs.path
---@return boolean
function fs.exists(path)
end
---@param path fs.path
---@return boolean
function fs.is_directory(path)
end
---@param path fs.path
---@return fun():fs.path
function fs.pairs(path)
end
---@param path fs.path
---@return fs.path
function fs.canonical(path)
end
---@param path fs.path
---@return fs.path
function fs.absolute(path)
end
---@param path fs.path
function fs.create_directories(path)
end
---@param path fs.path
---@return fs.status
function fs.symlink_status(path)
end
---@param path fs.path
---@return boolean
function fs.remove(path)
end
---@param source fs.path
---@param target fs.path
---@param options? `fs.copy_options.overwrite_existing`
function fs.copy_file(source, target, options)
end
---@param oldPath fs.path
---@param newPath fs.path
function fs.rename(oldPath, newPath)
end
return fs