diff --git a/antarest/study/service.py b/antarest/study/service.py index 9b7d259e94..31bb80fa1f 100644 --- a/antarest/study/service.py +++ b/antarest/study/service.py @@ -993,7 +993,7 @@ def sync_studies_on_disk( study_paths = [study.path for study in all_studies if study.missing is None] missing_studies = {study.path: study for study in all_studies if study.missing is not None} for folder in folders: - study_path = str(folder.path.as_posix()) + study_path = str(folder.path) if study_path not in study_paths: try: if study_path not in missing_studies.keys(): diff --git a/tests/storage/business/test_raw_study_service.py b/tests/storage/business/test_raw_study_service.py index 6b14b05c77..60a6bce5f0 100644 --- a/tests/storage/business/test_raw_study_service.py +++ b/tests/storage/business/test_raw_study_service.py @@ -454,8 +454,7 @@ def test_copy_study( ) md = study_service.copy(src_md, "dst_name", groups) md_id = md.id - tmp_path_as_posix = tmp_path.as_posix() - assert str(md.path) == f"{tmp_path_as_posix}{os.sep}{md_id}" + assert str(md.path) == f"{tmp_path}{os.sep}{md_id}" assert md.public_mode == PublicMode.NONE assert md.groups == groups study.get.assert_called_once_with(["study"])