Did I find the right examples for you? yes no

All Samples(429)  |  Call(403)  |  Derive(0)  |  Import(26)

        def S_ISLNK(mode):
    return S_IFMT(mode) == S_IFLNK
        


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

src/l/i/lib-pyFreenet-staging-HEAD/fcp/freenetfs.py   lib-pyFreenet-staging(Download)
            'isreg'  : stat.S_ISREG(mode),
            'isfifo' : stat.S_ISFIFO(mode),
            'islink'  : stat.S_ISLNK(mode),
            'issock' : stat.S_ISSOCK(mode),
            'mode'   : mode,
 
        if attr == 'islnk':
            return stat.S_ISLNK(self.mode)
 
        if attr == 'issock':

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

src/s/h/shastity-HEAD/src/shastity/filesystem.py   shastity(Download)
        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)
        if props['is_symlink']:
            props['symlink_value']   = os.readlink(path)

src/b/u/bup-HEAD/lib/bup/xstat.py   bup(Download)
    elif pystat.S_ISFIFO(mode):
        result += 'p'
    elif pystat.S_ISLNK(mode):
        result += 'l'
    elif pystat.S_ISSOCK(mode):
    elif pystat.S_ISDIR(mode):
        return '/'
    elif pystat.S_ISLNK(mode):
        return '@'
    elif pystat.S_ISFIFO(mode):

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

src/z/o/zope.app.twisted-3.5.0/src/twisted/conch/ls.py   zope.app.twisted(Download)
    elif stat.S_ISREG(ft): perms[0] = '-'
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'
    elif stat.S_ISSOCK(ft): perms[0] = 's'
    else: perms[0] = '!'

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

src/t/w/Twisted-13.2.0/twisted/conch/ls.py   Twisted(Download)
    elif stat.S_ISREG(ft): perms[0] = '-'
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'
    elif stat.S_ISSOCK(ft): perms[0] = 's'
    else: perms[0] = '!'

src/h/o/hortonworks-sandbox-HEAD/apps/filebrowser/src/filebrowser/lib/rwx.py   hortonworks-sandbox(Download)
  @param mode: file mode from "stat" command.
  """
  if stat.S_ISLNK(mode):
    return "link"
  elif stat.S_ISDIR(mode):
def rwxtype(mode):
  """ Returns l/d/-/? for use in "rwx" style strings. """
  if stat.S_ISLNK(mode):
    return "l"
  elif stat.S_ISDIR(mode):

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