Searched refs:stat (Results 1 - 25 of 77) sorted by relevance

1234

/pkg/src/tests/api/
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_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_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 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)
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 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 D__init__.py111 print(os.stat(file.attrs["file"]))
/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 Dgeneric.py41 import stat namespace
217 fs = os.stat(data)
649 if not stat.S_ISDIR(fs.st_mode):
688 fs = os.stat(os.path.join(*pathlist[:i]))
951 stat.S_IFIFO: "fifo",
952 stat.S_IFCHR: "character device",
953 stat.S_IFDIR: "directory",
954 stat.S_IFBLK: "block device",
955 stat.S_IFREG: "regular file",
956 stat
[all...]
H A Dlink.py35 import stat namespace
86 self.verify_fsobj_common(img, stat.S_IFLNK)
H A Dfile.py36 import stat namespace
300 os.chmod(final_path, stat.S_IRUSR|stat.S_IWUSR)
357 self.verify_fsobj_common(img, stat.S_IFREG)
359 if not stat.S_ISREG(lstat.st_mode):
786 os.chmod(path, stat.S_IWRITE|stat.S_IREAD)
H A Dlicense.py36 from stat import S_IWRITE, S_IREAD
207 length = os.stat(path).st_size
/pkg/src/modules/flavor/
H A Dscript.py28 import stat namespace
87 (stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
/pkg/src/modules/
H A Dpkgtarfile.py28 import stat namespace
90 os.makedirs(upperdirs, stat.S_IRWXU)
/pkg/src/modules/portable/
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):
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)
/pkg/src/
H A Dpydates60 os.stat(os.path.join(repo.root, f)).st_mtime
85 os.stat(os.path.join(repo.root, f)).st_mtime
H A Dsetup.py31 import stat namespace
754 os.stat(src)[stat.ST_INO] != \
755 os.stat(dest)[stat.ST_INO]:
777 os.stat(dst_path).st_mode
778 | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
1313 os.stat(pat
[all...]
/pkg/src/tests/cli/
H A Dt_lock.py70 self.assertNotEqual(os.stat(lfpath).st_size, 0)
91 self.assertEqual(os.stat(lfpath).st_size, 0)
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_colliding_links.py138 self.assertEqual(os.stat(os.path.join(self.get_img_path(),
H A Dt_pkg_modified.py51 nmtime = os.stat(mfpath).st_mtime
67 omtime = os.stat(mfpath).st_mtime
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)

Completed in 38 milliseconds

1234