The R Project SVN R

Rev

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

Rev 61168 Rev 61433
Line 25... Line 25...
25
 
25
 
26
  The file \sQuote{mode} follows POSIX conventions, giving three octal
26
  The file \sQuote{mode} follows POSIX conventions, giving three octal
27
  digits summarizing the permissions for the file owner, the owner's
27
  digits summarizing the permissions for the file owner, the owner's
28
  group and for anyone respectively.  Each digit is the logical
28
  group and for anyone respectively.  Each digit is the logical
29
  \emph{or} of read (4), write (2) and execute/search (1) permissions.
29
  \emph{or} of read (4), write (2) and execute/search (1) permissions.
30
  
30
 
31
#ifdef unix
31
#ifdef unix
32
  On most systems symbolic links are followed, so information is given
32
  On most systems symbolic links are followed, so information is given
33
  about the file to which the link points rather than about the link.
33
  about the file to which the link points rather than about the link.
34
#endif
34
#endif
35
#ifdef windows
35
#ifdef windows
Line 37... Line 37...
37
  all three digits refer to the file's owner.
37
  all three digits refer to the file's owner.
38
  The execute/search bits are set for directories, and for files based
38
  The execute/search bits are set for directories, and for files based
39
  on their extensions (e.g., \file{.exe}, \file{.com}, \file{.cmd}
39
  on their extensions (e.g., \file{.exe}, \file{.com}, \file{.cmd}
40
  and \file{.bat} files).  \code{\link{file.access}} will give a more
40
  and \file{.bat} files).  \code{\link{file.access}} will give a more
41
  reliable view of read/write access availability to the \R process.
41
  reliable view of read/write access availability to the \R process.
42
  
42
 
43
  UTF-8-encoded file names not valid in the current locale can be used.
43
  UTF-8-encoded file names not valid in the current locale can be used.
44
  
44
 
45
  Junction points and symbolic links are followed, so information is
45
  Junction points and symbolic links are followed, so information is
46
  given about the file/directory to which the link points rather than
46
  given about the file/directory to which the link points rather than
47
  about the link.
47
  about the link.
48
#endif
48
#endif
49
}
49
}
Line 80... Line 80...
80
  What is meant by the three file times depends on the OS and file
80
  What is meant by the three file times depends on the OS and file
81
  system.  On Windows native file systems \code{ctime} is the file
81
  system.  On Windows native file systems \code{ctime} is the file
82
  creation time (something which is not recorded on most Unix-alike file
82
  creation time (something which is not recorded on most Unix-alike file
83
  systems).  What is meant by \sQuote{file access} and hence the
83
  systems).  What is meant by \sQuote{file access} and hence the
84
  \sQuote{last access time} is system-dependent.
84
  \sQuote{last access time} is system-dependent.
85
  
85
 
86
  The times are reported to an accuracy of seconds, and perhaps more on
86
  The times are reported to an accuracy of seconds, and perhaps more on
87
  some systems.  However, many file systems only record times in
87
  some systems.  However, many file systems only record times in
88
  seconds, and some (e.g. modification time on FAT systems) are recorded
88
  seconds, and some (e.g. modification time on FAT systems) are recorded
89
  in increments of 2 or more seconds.
89
  in increments of 2 or more seconds.
90
}
90
}
Line 100... Line 100...
100
\seealso{
100
\seealso{
101
  \code{\link{Sys.readlink}} to find out about symbolic links,
101
  \code{\link{Sys.readlink}} to find out about symbolic links,
102
  \code{\link{files}}, \code{\link{file.access}},
102
  \code{\link{files}}, \code{\link{file.access}},
103
  \code{\link{list.files}},
103
  \code{\link{list.files}},
104
  and \code{\link{DateTimeClasses}} for the date formats.
104
  and \code{\link{DateTimeClasses}} for the date formats.
105
  
105
 
106
  \code{\link{Sys.chmod}} to change permissions.
106
  \code{\link{Sys.chmod}} to change permissions.
107
}
107
}
108
\examples{
108
\examples{
109
ncol(finf <- file.info(dir()))  # at least six
109
ncol(finf <- file.info(dir()))  # at least six
110
\dontrun{finf # the whole list}
110
\dontrun{finf # the whole list}