File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ namespace attributes {
56
56
explicit FileInfo (const List& fileInfo) {
57
57
path_ = as<std::string>(fileInfo[" path" ]);
58
58
exists_ = as<bool >(fileInfo[" exists" ]);
59
- lastModified_ = as<std:: time_t >(fileInfo[" lastModified" ]);
59
+ lastModified_ = as<double >(fileInfo[" lastModified" ]);
60
60
}
61
61
62
62
// convert to R list
@@ -70,7 +70,7 @@ namespace attributes {
70
70
71
71
std::string path () const { return path_; }
72
72
bool exists () const { return exists_; }
73
- time_t lastModified () const { return lastModified_; }
73
+ double lastModified () const { return lastModified_; }
74
74
75
75
std::string extension () const {
76
76
std::string::size_type pos = path_.find_last_of (' .' );
@@ -102,7 +102,7 @@ namespace attributes {
102
102
private:
103
103
std::string path_;
104
104
bool exists_;
105
- time_t lastModified_;
105
+ double lastModified_;
106
106
};
107
107
108
108
// Remove a file
@@ -2686,7 +2686,7 @@ namespace attributes {
2686
2686
throw Rcpp::file_io_error (errno, path);
2687
2687
} else {
2688
2688
exists_ = true ;
2689
- lastModified_ = buffer.st_mtime ;
2689
+ lastModified_ = static_cast < double >( buffer.st_mtime ) ;
2690
2690
}
2691
2691
}
2692
2692
You can’t perform that action at this time.
0 commit comments