Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(5)  |  Derive(0)  |  Import(5)
Return the mode of a file, the part usable with os.chmod

        def get_file_mode(path):
    """
    Return the mode of a file, the part usable with os.chmod
    """
    return stat.S_IMODE(os.stat(path)[stat.ST_MODE])
        


src/p/y/PySeqsee-0.1.2/farg/third_party/skeleton/core.py   PySeqsee(Download)
import weakref
 
from skeleton.utils import (
    get_loggger, get_file_mode, vars_to_optparser, prompt)
 
    def _set_mode(self, path, like):
        """
        Set mode of `path` with the mode of `like`.
        """
        _LOG.info("Set mode of %r to '%o'", path, get_file_mode(like))

src/p/y/PySeqsee-HEAD/farg/third_party/skeleton/core.py   PySeqsee(Download)
import weakref
 
from skeleton.utils import (
    get_loggger, get_file_mode, vars_to_optparser, prompt)
 
    def _set_mode(self, path, like):
        """
        Set mode of `path` with the mode of `like`.
        """
        _LOG.info("Set mode of %r to '%o'", path, get_file_mode(like))

src/s/k/skeleton_stu-0.6.3/skeleton/core.py   skeleton_stu(Download)
import weakref
 
from skeleton.utils import (
    get_loggger, get_file_mode, vars_to_optparser, prompt)
 
    def _set_mode(self, path, like):
        """
        Set mode of `path` with the mode of `like`.
        """
        _LOG.info("Set mode of %r to '%o'", path, get_file_mode(like))

src/s/k/skeleton-0.6/skeleton/core.py   skeleton(Download)
import weakref
 
from skeleton.utils import (
    get_loggger, get_file_mode, vars_to_optparser, prompt)
 
    def _set_mode(self, path, like):
        """
        Set mode of `path` with the mode of `like`.
        """
        _LOG.info("Set mode of %r to '%o'", path, get_file_mode(like))

src/s/k/skeleton-HEAD/skeleton/core.py   skeleton(Download)
import weakref
 
from skeleton.utils import (
    get_loggger, get_file_mode, vars_to_optparser, prompt)
 
    def _set_mode(self, path, like):
        """
        Set mode of `path` with the mode of `like`.
        """
        _LOG.info("Set mode of %r to '%o'", path, get_file_mode(like))