The R Project SVN R

Rev

Rev 74064 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 74064 Rev 74543
Line 1... Line 1...
1
% File src/library/base/man/Sys.setFileTime.Rd
1
% File src/library/base/man/Sys.setFileTime.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 2011-2016 R Core Team
3
% Copyright 2011-2018 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{Sys.setFileTime}
6
\name{Sys.setFileTime}
7
\alias{Sys.setFileTime}
7
\alias{Sys.setFileTime}
8
\title{
8
\title{
Line 15... Line 15...
15
Sys.setFileTime(path, time)
15
Sys.setFileTime(path, time)
16
}
16
}
17
 
17
 
18
\arguments{
18
\arguments{
19
  \item{path}{
19
  \item{path}{
20
    A length-one character vector specifying the path to a file or directory.
20
    A character vector containing file or directory paths.
21
  }
21
  }
22
  \item{time}{
22
  \item{time}{
23
    A date-time of class \code{"\link{POSIXct}"} or an object which can
23
    A date-time of class \code{"\link{POSIXct}"} or an object which can be
24
    be coerced to one.  Fractions of a second may be ignored.
24
    coerced to one.  Fractions of a second may be ignored.  Recycled along
-
 
25
    \code{paths}.
25
  }
26
  }
26
}
27
}
27
\details{
28
\details{
28
  This attempts sets the file time to the value specified.
29
  This attempts sets the file time to the value specified.
29
 
30
 
Line 34... Line 35...
34
  requisite system calls and suitable filesystems.
35
  requisite system calls and suitable filesystems.
35
 
36
 
36
  On Windows it uses the system call \code{SetFileTime} to set the
37
  On Windows it uses the system call \code{SetFileTime} to set the
37
  \sQuote{last write time}.  Some Windows file systems only record the
38
  \sQuote{last write time}.  Some Windows file systems only record the
38
  time at a resolution of two seconds.
39
  time at a resolution of two seconds.
-
 
40
 
-
 
41
  \code{Sys.setFileTime} has been vectorized in \R 3.6.0.  Earlier versions
-
 
42
  of \R required \code{path} and \code{time} to be vectors of length one.
39
}
43
}
40
\value{
44
\value{
41
  Logical, invisibly.  An indication if the operation succeeded.
45
  A logical vector indicating if the operation succeeded for each of the
-
 
46
  files and directories attempted, returned invisibly.
42
}
47
}
43
\keyword{file}
48
\keyword{file}
44
 
49