/pkg/src/modules/ |
H A D | pkgtarfile.py | 28 import stat namespace 90 os.makedirs(upperdirs, stat.S_IRWXU)
|
H A D | altroot.py | 39 import stat namespace 296 """A function similar to os.stat() that ensures that the path 324 if stat.S_ISDIR(si.st_mode):
|
H A D | cfgfiles.py | 36 import stat namespace 187 st = os.stat(self.filename)
|
/pkg/src/modules/actions/ |
H A D | hardlink.py | 35 import stat namespace 111 self.verify_fsobj_common(img, stat.S_IFREG) 130 if os.stat(path).st_ino != os.stat(target).st_ino:
|
H A D | directory.py | 38 import stat namespace 88 fs_mode = stat.S_IFMT(fs.st_mode) 93 if stat.S_ISDIR(fs_mode): 99 if stat.S_ISLNK(fs_mode): 116 elif stat.S_ISREG(fs_mode): 123 elif stat.S_ISDIR(fs_mode): 160 mode |= stat.S_IWUSR 216 self.verify_fsobj_common(img, stat.S_IFDIR)
|
H A D | link.py | 35 import stat namespace 86 self.verify_fsobj_common(img, stat.S_IFLNK)
|
/pkg/src/modules/flavor/ |
H A D | script.py | 28 import stat namespace 87 (stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
|
/pkg/src/tests/api/ |
H A D | t_indexer.py | 37 import stat namespace 91 fs = os.stat(os.path.join(ind._tmp_dir, file)) 102 self.assertTrue(os.stat(os.path.join(ind._tmp_dir , "sort.0")).st_size == 0)
|
H A D | t_api_refresh.py | 34 import stat namespace 174 stat.S_IRUSR|stat.S_IWUSR|stat.S_IRGRP|stat.S_IROTH)
|
H A D | t_misc.py | 35 import stat namespace 50 os.chmod(tmpdir, stat.S_IRWXU) 57 act.makedirs(foopath, mode = stat.S_IREAD) 61 assert(os.stat(tmpdir).st_mode & (stat.S_IREAD | stat.S_IWRITE) != 0) 62 assert(os.stat(fpath).st_mode & (stat.S_IREAD | stat.S_IWRITE) != 0) 63 assert(os.stat(fopat [all...] |
H A D | t_history.py | 35 import stat namespace 451 self.assertEqual(stat.S_IMODE(os.stat(h.path).st_mode), 455 self.assertEqual(stat.S_IMODE(os.stat(entry).st_mode),
|
/pkg/src/modules/bundle/ |
H A D | SolarisPackageDatastreamBundle.py | 28 import stat namespace 37 stat.S_IFBLK: "block-special", 38 stat.S_IFCHR: "character-special", 39 stat.S_IFDIR: "directory", 40 stat.S_IFIFO: "fifo", 41 stat.S_IFLNK: "link", 42 stat.S_IFREG: "file", 43 stat.S_IFSOCK: "socket"
|
H A D | TarBundle.py | 28 import stat namespace 61 mode=oct(stat.S_IMODE(tarinfo.mode)), 67 mode=oct(stat.S_IMODE(tarinfo.mode)),
|
H A D | DirectoryBundle.py | 30 import stat namespace 87 mode = oct(stat.S_IMODE(pstat.st_mode)) 115 if stat.S_ISREG(pstat.st_mode): 135 elif stat.S_ISLNK(pstat.st_mode): 138 elif stat.S_ISDIR(pstat.st_mode): 144 return stat.S_ISDIR(os.stat(filename).st_mode)
|
/pkg/src/tests/cli/ |
H A D | t_pkgfmt.py | 35 import stat namespace
|
H A D | t_https.py | 36 import stat namespace 340 os.chmod(self.ssl_auth_script, stat.S_IRWXU) 341 os.chmod(self.ssl_auth_bad_script, stat.S_IRWXU)
|
H A D | t_pkg_freeze.py | 34 import stat namespace 231 mod = stat.S_IMODE(os.stat(pth)[stat.ST_MODE]) 232 new_mod = mod & ~stat.S_IROTH
|
H A D | t_pkg_composite.py | 40 import stat namespace
|
H A D | t_pkgmogrify.py | 36 import stat namespace
|
H A D | t_pkg_mediated.py | 37 import stat namespace 521 self.assertTrue(stat.S_ISREG(s.st_mode)) 1098 self.assertEqual(os.stat(link).st_ino, 1099 os.stat(target).st_ino)
|
H A D | t_actuators.py | 33 import stat namespace 779 assert(stat.S_IMODE(os.stat(field).st_mode) == 0o644)
|
H A D | t_pkg_varcet.py | 37 import stat namespace
|
H A D | t_pkg_temp_sources.py | 41 import stat namespace 885 self.assertEqual(os.stat(vpath).st_size, 15) 904 self.assertEqual(os.stat(vpath).st_size, 21)
|
/pkg/src/modules/portable/ |
H A D | os_unix.py | 40 import stat namespace 198 passwd_stamp = os.stat(passwd_file).st_mtime 229 group_stamp = os.stat(group_file).st_mtime 300 fmode = stat.S_IMODE(os.lstat(path).st_mode)
|
H A D | os_windows.py | 39 import stat namespace 234 fmode = stat.S_IMODE(os.lstat(path).st_mode) 235 if (mode & stat.S_IRWXU) != (fmode & stat.S_IRWXU):
|