io - Wrapper for io functions

When using path.Path instances, it can become cumbersome to constantly wrap your paths around unicode() calls whenever you use an IO call. For this reason, this module wraps IO calls used throughout HS apps and convert paths to strings there.

io.copy(source_path, dest_path)
io.copytree(source_path, dest_path, *args, **kwargs)
io.exists(path)
io.isdir(path)
io.isfile(path)
io.listdir(path)
io.mkdir(path, *args, **kwargs)
io.makedirs(path, *args, **kwargs)
io.move(source_path, dest_path)
io.open(path, *args, **kwargs)
io.remove(path)
io.rename(source_path, dest_path)
io.rmdir(path)
io.rmtree(path)
io.stat(path)

Previous topic

files - Manipulate files and folders

Next topic

misc - Miscellaneous utilities

This Page