Galaxie Shell 0.2.6 documentation


Navigation:   | Index   | Search   | Top   | Up   | Prev   | Next   |
Table of Content: |glxshell.lib.stat module |S_IFMT() |S_IMODE() |S_ISBLK() |S_ISCHR() |S_ISDIR() |S_ISFIFO() |S_ISLNK() |S_ISREG() |S_ISSOCK() |filemode() |

© Copyright 2020-2024, Galaxie Shell Team.

Top » glxshell » glxshell package » glxshell.lib package » glxshell.lib.stat module

glxshell.lib.stat module

Constants/functions for interpreting results of os.stat() and os.lstat().

Suggested usage: from stat import *

glxshell.lib.stat.S_IFMT(mode)[source]

Return the portion of the file’s mode that describes the file type.

glxshell.lib.stat.S_IMODE(mode)[source]

Return the portion of the file’s mode that can be set by os.chmod().

glxshell.lib.stat.S_ISBLK(mode)[source]

Return True if mode is from a block special device file.

glxshell.lib.stat.S_ISCHR(mode)[source]

Return True if mode is from a character special device file.

glxshell.lib.stat.S_ISDIR(mode)[source]

Return True if mode is from a directory.

glxshell.lib.stat.S_ISFIFO(mode)[source]

Return True if mode is from a FIFO (named pipe).

glxshell.lib.stat.S_ISLNK(mode)[source]

Return True if mode is from a symbolic link.

glxshell.lib.stat.S_ISREG(mode)[source]

Return True if mode is from a regular file.

glxshell.lib.stat.S_ISSOCK(mode)[source]

Return True if mode is from a socket.

glxshell.lib.stat.filemode(mode)[source]

Convert a file’s mode to a string of the form ‘-rwxrwxrwx’.

Top » glxshell » glxshell package » glxshell.lib package » glxshell.lib.stat module

© Copyright 2020-2024, Galaxie Shell Team.
This page is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License (CC BY-NC-SA 4.0).
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

Last updated on None.
Created using Sphinx 8.0.2.