mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
@@ -233,7 +233,7 @@ impl<T> Controller for T where T: ControllerInternal {
|
||||
fn create(&self) {
|
||||
self.verify_path().expect("path should be valid");
|
||||
|
||||
match ::std::fs::create_dir(self.get_path()) {
|
||||
match ::std::fs::create_dir_all(self.get_path()) {
|
||||
Ok(_) => self.post_create(),
|
||||
Err(e) => warn!("error create_dir {:?}", e),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user