diff --git a/Documentation/pycardium/os.rst b/Documentation/pycardium/os.rst index 2447ccfe88494b385e8ec9544b08eb5146a65b48..d2fd7cf224b316050b8f84df838213c0c6116df9 100644 --- a/Documentation/pycardium/os.rst +++ b/Documentation/pycardium/os.rst @@ -8,12 +8,6 @@ functions found in CPythons ``os`` module. CPython-Like ------------ -.. py:function:: unlink(path) - - Unlink (remove) a file. - - :param str path: The file to remove. - .. py:function:: listdir(dir) List contents of a directory. @@ -22,6 +16,28 @@ CPython-Like :returns: A list of entities (files or subdirectories) in the directory ``dir``. +.. py:function:: mkdir(path) + + Create a directory named *path*. + + :param str path: Path to the directory to create. Only the last component + of this path will be created. + +.. py:function:: rename(src, dst) + + Rename the file or directory *src* to *dst*. If *dst* exists, the operation + will fail. + + :param str src: Path to source file to rename. + :param str dst: Destination path to rename to. Must not exist before + calling :py:func:`os.rename`. + +.. py:function:: unlink(path) + + Unlink (remove) a file. + + :param str path: The file to remove. + .. py:function:: urandom(n) Return ``n`` random bytes.