Commit f6bdb393 authored by Felix Seibert's avatar Felix Seibert
Browse files

fixing paths

parent 8c55ae97
......@@ -459,7 +459,7 @@ class OSDManager(object):
print("Using SLURM mode for moving folders...")
if tmp_dir is None:
tmp_dir = os.path.join(self.pathToMountPoint, self.volumeName, '.tmp_move_folder')
tmp_dir = os.path.join(self.pathToMountPoint, '.tmp_move_folder')
os.makedirs(tmp_dir, exist_ok=True)
slurm_hosts = div_util.get_slurm_hosts()
......@@ -482,7 +482,7 @@ class OSDManager(object):
command = ""
for move_folder in osd_to_folders_map[key]:
folder_path = os.path.join(self.pathToMountPoint, move_folder[len(self.volumeName) + 1:])
folder_tmp_path = os.path.join(tmp_dir, move_folder)
folder_tmp_path = os.path.join(tmp_dir, move_folder[len(self.volumeName) + 1:])
# copy folder to temporary location
command += "srun -N1-1 --nodelist=" + host_name
command += " cp -r " + folder_path + " " + tmp_dir + " ; "
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment