Did I find the right examples for you? yes no

All Samples(732)  |  Call(682)  |  Derive(0)  |  Import(50)

        def S_ISREG(mode):
    return S_IFMT(mode) == S_IFREG
        


src/c/l/clusterGIS-HEAD/examples/fabricate.py   clusterGIS(Download)
            if depth > 1:
                times.update(_file_times(fullname, depth-1, ignoreprefix))
        elif stat.S_ISREG(st.st_mode):
            times[fullname] = st.st_atime, st.st_mtime
    return times

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/conch/ls.py   hortonworks-sandbox(Download)
    elif stat.S_ISCHR(ft): perms[0] = 'c'
    elif stat.S_ISBLK(ft): perms[0] = 'b'
    elif stat.S_ISREG(ft): perms[0] = '-'
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'

src/l/i/lib-pyFreenet-staging-HEAD/fcp/freenetfs.py   lib-pyFreenet-staging(Download)
            'ischr'  : stat.S_ISCHR(mode),
            'isblk'  : stat.S_ISBLK(mode),
            'isreg'  : stat.S_ISREG(mode),
            'isfifo' : stat.S_ISFIFO(mode),
            'islink'  : stat.S_ISLNK(mode),
 
        if attr in ['isreg', 'isfile']:
            return stat.S_ISREG(self.mode)
 
        if attr == 'isfifo':

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/conch/ls.py   oh-mainline(Download)
    elif stat.S_ISCHR(ft): perms[0] = 'c'
    elif stat.S_ISBLK(ft): perms[0] = 'b'
    elif stat.S_ISREG(ft): perms[0] = '-'
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/conch/ls.py   mythbox(Download)
    elif stat.S_ISCHR(ft): perms[0] = 'c'
    elif stat.S_ISBLK(ft): perms[0] = 'b'
    elif stat.S_ISREG(ft): perms[0] = '-'
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'

src/s/h/shastity-HEAD/src/shastity/filesystem.py   shastity(Download)
        props['is_character_device'] = stat.S_ISCHR(statinfo.st_mode)
        props['is_block_device']     = stat.S_ISBLK(statinfo.st_mode)
        props['is_regular']          = stat.S_ISREG(statinfo.st_mode)
        props['is_fifo']             = stat.S_ISFIFO(statinfo.st_mode)
        props['is_symlink']          = stat.S_ISLNK(statinfo.st_mode)

src/z/o/zope.app.twisted-3.5.0/src/twisted/conch/ls.py   zope.app.twisted(Download)
    elif stat.S_ISCHR(ft): perms[0] = 'c'
    elif stat.S_ISBLK(ft): perms[0] = 'b'
    elif stat.S_ISREG(ft): perms[0] = '-'
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'

src/b/u/bup-HEAD/lib/bup/xstat.py   bup(Download)
def mode_str(mode):
    result = ''
    # FIXME: Other types?
    if pystat.S_ISREG(mode):
        result += '-'
def classification_str(mode, include_exec):
    if pystat.S_ISREG(mode):
        if include_exec \
           and (pystat.S_IMODE(mode) \
                & (pystat.S_IXUSR | pystat.S_IXGRP | pystat.S_IXOTH)):

src/s/u/SubliminalCollaborator-HEAD/libs/twisted/conch/ls.py   SubliminalCollaborator(Download)
    elif stat.S_ISCHR(ft): perms[0] = 'c'
    elif stat.S_ISBLK(ft): perms[0] = 'b'
    elif stat.S_ISREG(ft): perms[0] = '-'
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'

src/h/o/hortonworks-sandbox-HEAD/apps/filebrowser/src/filebrowser/lib/rwx.py   hortonworks-sandbox(Download)
  elif stat.S_ISDIR(mode):
    return "dir"
  elif stat.S_ISREG(mode):
    return "file"
  else:
  elif stat.S_ISDIR(mode):
    return "d"
  elif stat.S_ISREG(mode):
    return "-"
  else:

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next