Pārlūkot izejas kodu

Create directory if not exists when plugging HDF5 disk

Corentin Salingue 7 gadi atpakaļ
vecāks
revīzija
8354b0abfe
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/core/disk_ops/disk_hdf5.c

+ 1 - 0
src/core/disk_ops/disk_hdf5.c

@@ -421,6 +421,7 @@ static void *starpu_hdf5_plug(void *parameter, starpu_ssize_t size STARPU_ATTRIB
         {
                 /* The file doesn't exist or the directory exists => create the datafile */
                 int id;
+		_starpu_mkpath(parameter, S_IRWXU);
                 fileBase->path = _starpu_mktemp_many(parameter, 0, O_RDWR | O_BINARY, &id);
                 if (!fileBase->path)
                 {