The R Project SVN R

Rev

Rev 59039 | Rev 67599 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 62709
Line 1... Line 1...
1
% File src/library/base/man/file.info.Rd
1
% File src/library/base/man/file.info.Rd
2
% Part of the R package, http://www.R-project.org
2
% Part of the R package, http://www.R-project.org
3
% Copyright 2009-11 R Core Team
3
% Copyright 2009-13 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{Sys.readlink}
6
\name{Sys.readlink}
7
\alias{Sys.readlink}
7
\alias{Sys.readlink}
8
\title{
8
\title{
Line 10... Line 10...
10
}
10
}
11
\description{
11
\description{
12
  Find out if a file path is a symbolic link, and if so what it is
12
  Find out if a file path is a symbolic link, and if so what it is
13
  linked to, \emph{via} the system call \code{readlink}.
13
  linked to, \emph{via} the system call \code{readlink}.
14
 
14
 
15
  Symbolic links are a Unix concept, not implemented on Windows.
15
  Symbolic links are a POSIX concept, not implemented on Windows but for
-
 
16
  most filesystems on Unix-alikes.
16
}
17
}
17
\usage{
18
\usage{
18
Sys.readlink(paths)
19
Sys.readlink(paths)
19
}
20
}
20
\arguments{
21
\arguments{
Line 24... Line 25...
24
\value{
25
\value{
25
  A character vector of the the same length as \code{paths}.  The
26
  A character vector of the the same length as \code{paths}.  The
26
  entries are the path of the file linked to, \code{""} if the path is
27
  entries are the path of the file linked to, \code{""} if the path is
27
  not a symbolic link, and \code{NA} if there is an error (e.g., the
28
  not a symbolic link, and \code{NA} if there is an error (e.g., the
28
  path does not exist).
29
  path does not exist).
-
 
30
 
-
 
31
  On platforms without the \code{readlink} system call, all elements are
-
 
32
  \code{""}.
29
}
33
}
30
\seealso{
34
\seealso{
-
 
35
  \code{\link{file.symlink}} for the creation of symbolic links (and
31
  \code{\link{file.symlink}}, \code{\link{file.info}}
36
  their Windows analogues), \code{\link{file.info}}
32
}
37
}
33
\keyword{file}
38
\keyword{file}