Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 101) sorted by relevance

12345

/coreutils/tests/du/
Dhard-link.sh24 mkdir -p dir/sub
25 ( cd dir &&
31 du -a -L --exclude=sub --count-links dir \
41 du -a --exclude=sub $args dir \
46 dir/f3
47 dir/f2
48 dir/f1
49 dir
51 dir/f_
52 dir
[all …]
Dmove-dir-while-traversing.sh35 cat <<'EOF' > inotify-watch-for-dir-access.py
40 dir = sys.argv[1]
41 dest_parent = os.path.dirname(os.path.dirname(dir))
42 dest = os.path.join(dest_parent, os.path.basename(dir))
47 os.rename(dir, dest)
55 wm.watch_transient_file(dir, pn.IN_OPEN, ProcessDir)
60 chmod a+x inotify-watch-for-dir-access.py
81 timeout 6 ./inotify-watch-for-dir-access.py $t/3/a/b > start-msg & pid=$!
/coreutils/tests/mv/
Dinto-self.sh22 dir=toself-dir
25 rm -rf $dir $file || framework_failure_
26 mkdir -p $dir/a/b || framework_failure_
31 mv $dir $file $dir > out 2>&1 && fail=1
35 -e "s,$dir,SRC," \
36 -e "s,$dir/$dir,DEST," \
48 test -d $dir || fail=1
49 test -d $dir/$dir && fail=1
51 test -f $dir/$file || fail=1
Dmv-special-1.sh25 dir=mv-dir
30 mkdir -p $dir/a/b/c $dir/d/e/f || framework_failure_
31 touch $dir/a/b/c/file1 $dir/d/e/f/file2 || framework_failure_
39 mv --verbose $null $dir "$other_partition_tmpdir" > out || fail=1
42 test -d $dir && fail=1
45 test -d "$other_partition_tmpdir/$dir/a/b/c" || fail=1
Dhard-link-1.sh25 dir=hlink
27 mkdir $dir || framework_failure_
28 > $dir/a || framework_failure_
29 ln $dir/a $dir/b || framework_failure_
31 mv $dir "$other_partition_tmpdir" || fail=1
34 ls -1i "$other_partition_tmpdir/$dir" > out || fail=1
Dpart-symlink.sh67 rm -rf dir || fail=1
69 mkdir dir || fail=1
70 cd dir || fail=1
157 (loc_reg) (rem_sl -> dir/loc_reg)
163 (loc_reg) (rem_sl rem_sl~ -> dir/loc_reg)
165 (loc_reg) (rem_sl rem_sl~ -> dir/loc_reg)
167 (loc_reg) (rem_sl rem_sl~ -> dir/loc_reg)
170 (loc_reg) (rem_sl -> dir/loc_reg)
174 (loc_reg) (rem_sl -> dir/loc_reg)
177 (loc_reg) (rem_sl -> dir/loc_reg)
[all …]
Dno-copy.sh24 mkdir dir || framework_failure_
25 > dir/a || framework_failure_
28 returns_ 1 mv --no-copy dir "$other_partition_tmpdir" || fail=1
30 mv dir "$other_partition_tmpdir" || fail=1
/coreutils/tests/cp/
Dcp-HL.sh22 mkdir src-dir dest-dir || framework_failure_
25 ln -s no-such-file src-dir/slink || framework_failure_
28 cp -H -R slink src-dir dest-dir || fail=1
29 test -d src-dir || fail=1
30 test -d dest-dir/src-dir || fail=1
33 cat dest-dir/slink > /dev/null 2>&1 || fail=1
36 returns_ 1 cat dest-dir/src-dir/slink >/dev/null 2>&1 || fail=1
Dinto-self.sh27 mkdir a dir || framework_failure_
31 cp -R dir dir 2> out && fail=1
35 cp -rl dir dir 2>> out && fail=1
38 cp -rl a dir dir 2>> out && fail=1
40 cp -rl a dir dir 2>> out && fail=1
/coreutils/src/
Drmdir.c98 ignorable_failure (int error_number, char const *dir) in ignorable_failure() argument
103 && directory_status (AT_FDCWD, dir) == DS_NONEMPTY))); in ignorable_failure()
112 remove_parents (char *dir) in remove_parents() argument
117 strip_trailing_slashes (dir); in remove_parents()
120 slash = strrchr (dir, '/'); in remove_parents()
125 while (slash > dir && *slash == '/') in remove_parents()
131 prog_fprintf (stdout, _("removing directory, %s"), quoteaf (dir)); in remove_parents()
133 ok = (rmdir (dir) == 0); in remove_parents()
139 if (ignorable_failure (rmdir_errno, dir)) in remove_parents()
157 error (0, rmdir_errno, _(error_msg), quoteaf (dir)); in remove_parents()
[all …]
Dmkdir.c111 announce_mkdir (char const *dir, void *options) in announce_mkdir() argument
115 prog_fprintf (stdout, o->created_directory_format, quoteaf (dir)); in announce_mkdir()
124 make_ancestor (char const *dir, char const *component, void *options) in make_ancestor() argument
132 quoteaf (dir)); in make_ancestor()
146 announce_mkdir (dir, options); in make_ancestor()
153 process_dir (char *dir, struct savewd *wd, void *options) in process_dir() argument
161 && defaultcon (o->set_security_context, dir, S_IFDIR) < 0 in process_dir()
164 quoteaf (dir)); in process_dir()
167 int ret = (make_dir_parents (dir, wd, o->make_ancestor_function, options, in process_dir()
181 if (! restorecon (o->set_security_context, last_component (dir), false) in process_dir()
[all …]
/coreutils/tests/ls/
Dgroup-dirs.sh23 mkdir dir dir/b || framework_failure_
24 touch dir/a || framework_failure_
25 ln -s b dir/bl || framework_failure_
27 ls --group dir > out || fail=1
35 ls --group -d dir/* > out || fail=1
37 dir/b
38 dir/bl
39 dir/a
Dzero-option.sh22 mkdir dir && touch dir/a dir/b dir/cc || framework_failure_
25 LC_ALL=C ls $allowed_options --zero dir >out || fail=1
29 returns_ 2 ls $disallowed_options --zero dir || fail=1
32 LC_ALL=C ls $disabled_options --zero dir >out || fail=1
Ddired.sh24 mkdir dir || framework_failure_
27 dir:
33 LC_MESSAGES=C ls $opt -R --dired dir > out || fail=1
40 touch dir/1a dir/2á || framework_failure_
41 mkdir -p dir/3dir || framework_failure_
43 ls -l --dired dir | tee /tmp/pb.ls> out || fail=1
Dno-arg.sh22 mkdir -p dir/subdir || framework_failure_
23 touch dir/subdir/file2 || framework_failure_
27 dir
40 dir
45 ./dir:
48 ./dir/subdir:
Dfollow-slink.sh25 mkdir dir dir/sub dir1 || framework_failure_
26 cd dir || framework_failure_
28 ln -s ../../dir1 sub/link-to-dir || framework_failure_
55 link-to-dir/
57 sub/link-to-dir:
Dcapability.sh36 mkdir test test/dir
38 touch cap_pos dir/cap_pos dir/cap_neg
39 for file in cap_pos dir/cap_neg; do
50 ls --color=always cap_pos dir > out || fail=1
Ddangle.sh26 mkdir -p dir/sub || framework_failure_
27 ln -s dir slink-to-dir || framework_failure_
41 ls slink-to-dir >> out 2>&1 || fail=1
42 ls -H slink-to-dir >> out 2>&1 || fail=1
43 ls -L slink-to-dir >> out 2>&1 || fail=1
Dfile-type.sh24 mkdir dir
28 ln -s dir slink-dir
41 $block${char}dir/
46 slink-dir@
/coreutils/tests/ln/
Dhard-to-sym.sh59 ln -s /no-such-dir || framework_failure_
60 ln -L no-such-dir hard-to-dangle 2>err && fail=1
65 ln -P no-such-dir hard-to-dangle || fail=1
70 ln -s d link-to-dir || framework_failure_
71 ln -L link-to-dir hard-to-dir-link 2>err && fail=1
76 ln -P link-to-dir/ hard-to-dir-link 2>err && fail=1
81 ln -P link-to-dir hard-to-dir-link || fail=1
/coreutils/tests/
DCuTmpdir.pm27 my $dir;
49 defined $dir
54 find ($options, $dir);
79 if ($$ == $original_pid and defined $dir)
95 $dir = File::Temp::tempdir("$prefix.tmp-XXXX", CLEANUP => 1 );
96 chdir $dir
97 or warn "$ME: failed to chdir to $dir: $!\n";
104 or warn "$ME: failed to chdir to .. from $dir: $!\n";
/coreutils/tests/env/
Denv-S-script.sh27 dir="$abs_top_builddir/src"
45 printf "#!$dir/env sh\necho hello\n" > env_test || framework_failure_
57 printf "#!$dir/env -S $dir/printf "'x%%sx\\n A B\n' > env1 || framework_failure_
75 printf "#!$dir/env -S $dir/printf "'x%%sx\\n "A B"\n' > env2 ||
89 printf "#!$dir/env -S$dir/printf"'\\_x%%sx\\n\\_Y\n' > env3 ||
105 printf "#!$dir/env -S$dir/printf"' x%%sx\\n A#B #C D\n' > env4 \
122 { printf "#!$dir/env -S $PERL -w -T\n" ;
137 { printf "#!$dir/env -S " ;
/coreutils/tests/truncate/
Dtruncate-fail-diag.sh30 dir=$d1/such-dir
31 truncate -s0 $dir > out 2>&1 && fail=1
37 dir=$d1/
38 truncate -s0 $dir > out 2>&1 && fail=1
/coreutils/tests/chmod/
Dignore-symlink.sh22 mkdir dir || framework_failure_
23 touch dir/f || framework_failure_
24 ln -s f dir/l || framework_failure_
27 chmod u+w -R dir 2> out || fail=1
/coreutils/tests/tail/
Dinotify-dir-recreate.sh54 mkdir dir && echo 'inotify' > dir/file || framework_failure_
57 timeout 60 tail --pid=$$ -F dir/file >out 2>&1 & pid=$!
66 rm -r dir || framework_failure_
71 mkdir dir && touch dir/file || framework_failure_

12345