Lines Matching refs:path
14 int remove_file(const char *path, int flags)
18 if (lstat(path, &path_stat) < 0) {
20 bb_perror_msg("cannot stat '%s'", path);
24 bb_perror_msg("cannot remove '%s'", path);
36 bb_error_msg("%s: is a directory", path);
40 if ((!(flags & FILEUTILS_FORCE) && access(path, W_OK) < 0 && isatty(0))
44 path);
49 dp = opendir(path);
57 new_path = concat_subpath_file(path, d->d_name);
66 bb_perror_msg("cannot close '%s'", path);
71 fprintf(stderr, "%s: remove directory '%s'? ", applet_name, path);
76 if (rmdir(path) < 0) {
77 bb_perror_msg("cannot remove '%s'", path);
85 if ((!(flags & FILEUTILS_FORCE) && access(path, W_OK) < 0
89 fprintf(stderr, "%s: remove '%s'? ", applet_name, path);
94 if (unlink(path) < 0) {
95 bb_perror_msg("cannot remove '%s'", path);