File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
library/std/src/sys/hermit Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ pub struct OpenOptions {
4141 mode : i32 ,
4242}
4343
44+ #[ derive( Copy , Clone , Debug , Default ) ]
45+ pub struct FileTimes { }
46+
4447pub struct FilePermissions ( !) ;
4548
4649pub struct FileType ( !) ;
@@ -110,6 +113,11 @@ impl fmt::Debug for FilePermissions {
110113 }
111114}
112115
116+ impl FileTimes {
117+ pub fn set_accessed ( & mut self , _t : SystemTime ) { }
118+ pub fn set_modified ( & mut self , _t : SystemTime ) { }
119+ }
120+
113121impl FileType {
114122 pub fn is_dir ( & self ) -> bool {
115123 self . 0
@@ -344,6 +352,10 @@ impl File {
344352 pub fn set_permissions ( & self , _perm : FilePermissions ) -> io:: Result < ( ) > {
345353 Err ( Error :: from_raw_os_error ( 22 ) )
346354 }
355+
356+ pub fn set_times ( & self , _times : FileTimes ) -> io:: Result < ( ) > {
357+ Err ( Error :: from_raw_os_error ( 22 ) )
358+ }
347359}
348360
349361impl DirBuilder {
You can’t perform that action at this time.
0 commit comments