diff --git a/common/dialogs/git/panel_git_repos.cpp b/common/dialogs/git/panel_git_repos.cpp index 9e0e534d6e..6557bcc342 100644 --- a/common/dialogs/git/panel_git_repos.cpp +++ b/common/dialogs/git/panel_git_repos.cpp @@ -167,7 +167,7 @@ static bool testRepositoryConnection( COMMON_SETTINGS::GIT_REPOSITORY& repositor // Create a temporary directory to initialize the Git repository wxString tempDirPath = wxFileName::CreateTempFileName(wxT("kigit_temp")); - if( !wxMkDir(tempDirPath, wxS_DIR_DEFAULT ) ) + if( !wxFileName::Mkdir( tempDirPath, wxS_DIR_DEFAULT ) ) { git_libgit2_shutdown(); wxLogError( "Failed to create temporary directory for Git repository (%s): %s", tempDirPath, diff --git a/pcbnew/dialogs/panel_fp_lib_table.cpp b/pcbnew/dialogs/panel_fp_lib_table.cpp index 6c6d5c290d..bbc0066ae6 100644 --- a/pcbnew/dialogs/panel_fp_lib_table.cpp +++ b/pcbnew/dialogs/panel_fp_lib_table.cpp @@ -875,7 +875,7 @@ bool PANEL_FP_LIB_TABLE::convertLibrary( STRING_UTF8_MAP* aOldFileProps, wxArrayString fpNames; wxFileName newFileName( aNewFilePath ); - if( !newFileName.DirExists() && !wxMkDir( aNewFilePath, wxS_DIR_DEFAULT ) ) + if( !newFileName.DirExists() && !wxFileName::Mkdir( aNewFilePath, wxS_DIR_DEFAULT ) ) return false; try