Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def S_ISDIR(mode):
    return S_IFMT(mode) == S_IFDIR
        


src/h/a/halberd-0.2.4/Halberd/clues/file.py   halberd(Download)
            os.mkdir(dest)
        else:
            if not shutil.stat.S_ISDIR(st.st_mode):
                raise InvalidFile, \
                      '%s already exist and is not a directory' % dest

src/h/a/halberd-HEAD/Halberd/clues/file.py   halberd(Download)
            os.mkdir(dest)
        else:
            if not shutil.stat.S_ISDIR(st.st_mode):
                raise InvalidFile, \
                      '%s already exist and is not a directory' % dest