| Line 1... |
Line 1... |
| 1 |
% File src/library/base/man/files.Rd
|
1 |
% File src/library/base/man/files.Rd
|
| 2 |
% Part of the R package, https://www.R-project.org
|
2 |
% Part of the R package, https://www.R-project.org
|
| 3 |
% Copyright 1995-2023 R Core Team
|
3 |
% Copyright 1995-2024 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{files2}
|
6 |
\name{files2}
|
| 7 |
\alias{dir.create}
|
7 |
\alias{dir.create}
|
| 8 |
\alias{dir.exists}
|
8 |
\alias{dir.exists}
|
| Line 22... |
Line 22... |
| 22 |
Sys.chmod(paths, mode = "0777", use_umask = TRUE)
|
22 |
Sys.chmod(paths, mode = "0777", use_umask = TRUE)
|
| 23 |
Sys.umask(mode = NA)
|
23 |
Sys.umask(mode = NA)
|
| 24 |
}
|
24 |
}
|
| 25 |
\arguments{
|
25 |
\arguments{
|
| 26 |
\item{path}{a character vector containing a single path name. Tilde
|
26 |
\item{path}{a character vector containing a single path name. Tilde
|
| 27 |
expansion (see \code{\link{path.expand}}) is done.}
|
27 |
expansion (see \code{\link{path.expand}}) is done. Necessarily a
|
| - |
|
28 |
non-empty string.}
|
| 28 |
\item{paths}{character vectors containing file or directory paths. Tilde
|
29 |
\item{paths}{character vectors containing file or directory paths. Tilde
|
| 29 |
expansion (see \code{\link{path.expand}}) is done.}
|
30 |
expansion (see \code{\link{path.expand}}) is done.}
|
| 30 |
\item{showWarnings}{logical; should the warnings on failure be shown?}
|
31 |
\item{showWarnings}{logical; should the warnings on failure be shown?}
|
| 31 |
\item{recursive}{logical. Should elements of the path other than the
|
32 |
\item{recursive}{logical. Should elements of the path other than the
|
| 32 |
last be created? If true, like the Unix command \command{mkdir -p}.}
|
33 |
last be created? If true, like the Unix command \command{mkdir -p}.}
|
| Line 104... |
Line 105... |
| 104 |
How modes are handled depends on the file system, even on Unix-alikes
|
105 |
How modes are handled depends on the file system, even on Unix-alikes
|
| 105 |
(although their documentation is often written assuming a POSIX file
|
106 |
(although their documentation is often written assuming a POSIX file
|
| 106 |
system). So treat documentation cautiously if you are using, say, a
|
107 |
system). So treat documentation cautiously if you are using, say, a
|
| 107 |
FAT/FAT32 or network-mounted file system.
|
108 |
FAT/FAT32 or network-mounted file system.
|
| 108 |
|
109 |
|
| 109 |
See \link{files} for how file paths with marked encodings are interpreted.
|
110 |
See the help on \link{files} for how file paths with marked encodings
|
| - |
|
111 |
are interpreted.
|
| 110 |
}
|
112 |
}
|
| 111 |
\value{
|
113 |
\value{
|
| 112 |
\code{dir.exists} returns a logical vector of \code{TRUE} or
|
114 |
\code{dir.exists} returns a logical vector of \code{TRUE} or
|
| 113 |
\code{FALSE} values (without names).
|
115 |
\code{FALSE} values (without names).
|
| 114 |
|
116 |
|