libglnx porting: Port away from gs_file_ensure_directory()
The init-fs code in particular gets (IMO) a lot cleaner being fd relative. Closes: #312 Approved by: giuseppe
This commit is contained in:
1 parent
e5eb6f3a22
commit
6e57987c7c
4 files changed
+49
-46
No files matched your search
@@ -1483,7 +1483,8 @@ ostree_repo_static_delta_generate (OstreeRepo *self,
|
||||
|
||||
descriptor_dir = g_file_get_parent (descriptor_path);
|
||||
|
||||
if (!gs_file_ensure_directory (descriptor_dir, TRUE, cancellable, error))
|
||||
if (!glnx_shutil_mkdir_p_at (AT_FDCWD, gs_file_get_path_cached (descriptor_dir), 0755,
|
||||
cancellable, error))
|
||||
goto out;
|
||||
|
||||
for (i = 0; i < part_tempfiles->len; i++)
|
||||
|
||||
Reference in new issue
Block a user