File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,10 @@ impl Vfs for OsFs {
179
179
Ok ( fs:: create_dir ( self . get_real_path ( path) ?) . await ?)
180
180
}
181
181
182
+ async fn mkdir_all ( & self , path : & str ) -> VfsResult < ( ) > {
183
+ Ok ( fs:: create_dir_all ( self . get_real_path ( path) ?) . await ?)
184
+ }
185
+
182
186
async fn mv ( & self , from : & str , to : & str ) -> VfsResult < ( ) > {
183
187
Ok ( fs:: rename ( self . get_real_path ( from) ?, self . get_real_path ( to) ?) . await ?)
184
188
}
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ pub trait Vfs: Sync + Send {
36
36
async fn cp ( & self , from : & str , to : & str ) -> VfsResult < ( ) > ;
37
37
async fn metadata ( & self , path : & str ) -> VfsResult < Box < dyn VMetadata > > ;
38
38
async fn mkdir ( & self , path : & str ) -> VfsResult < ( ) > ;
39
+ async fn mkdir_all ( & self , path : & str ) -> VfsResult < ( ) > ;
39
40
async fn mv ( & self , from : & str , to : & str ) -> VfsResult < ( ) > ;
40
41
async fn open ( & self , path : & str , options : OpenOptions )
41
42
-> VfsResult < Pin < Box < dyn VFile + Send > > > ;
You can’t perform that action at this time.
0 commit comments