Searched defs:stat (Results 1 - 25 of 46) sorted by relevance

12

/pkg/src/modules/
H A Dpkgtarfile.py28 import stat namespace
90 os.makedirs(upperdirs, stat.S_IRWXU)
H A Daltroot.py39 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 Dcfgfiles.py36 import stat namespace
187 st = os.stat(self.filename)
/pkg/src/modules/actions/
H A Dhardlink.py35 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 Ddirectory.py38 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 Dlink.py35 import stat namespace
86 self.verify_fsobj_common(img, stat.S_IFLNK)
/pkg/src/modules/flavor/
H A Dscript.py28 import stat namespace
87 (stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
/pkg/src/tests/api/
H A Dt_indexer.py37 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 Dt_api_refresh.py34 import stat namespace
174 stat.S_IRUSR|stat.S_IWUSR|stat.S_IRGRP|stat.S_IROTH)
H A Dt_misc.py35 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 Dt_history.py35 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 DSolarisPackageDatastreamBundle.py28 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 DTarBundle.py28 import stat namespace
61 mode=oct(stat.S_IMODE(tarinfo.mode)),
67 mode=oct(stat.S_IMODE(tarinfo.mode)),
H A DDirectoryBundle.py30 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 Dt_pkgfmt.py35 import stat namespace
H A Dt_https.py36 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 Dt_pkg_freeze.py34 import stat namespace
231 mod = stat.S_IMODE(os.stat(pth)[stat.ST_MODE])
232 new_mod = mod & ~stat.S_IROTH
H A Dt_pkg_composite.py40 import stat namespace
H A Dt_pkgmogrify.py36 import stat namespace
H A Dt_pkg_mediated.py37 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 Dt_actuators.py33 import stat namespace
779 assert(stat.S_IMODE(os.stat(field).st_mode) == 0o644)
H A Dt_pkg_varcet.py37 import stat namespace
H A Dt_pkg_temp_sources.py41 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 Dos_unix.py40 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 Dos_windows.py39 import stat namespace
234 fmode = stat.S_IMODE(os.lstat(path).st_mode)
235 if (mode & stat.S_IRWXU) != (fmode & stat.S_IRWXU):

Completed in 1599 milliseconds

12