7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-05 00:15:30 +00:00

Remove the long path adjustment for now

Some bugs between archive vs backup project
This commit is contained in:
Marek Roszko 2025-01-28 06:36:29 -05:00
parent 76083e507a
commit 6652d3eca7
2 changed files with 0 additions and 5 deletions

View File

@ -65,7 +65,6 @@ public:
wxFileName package( aFilename );
package.MakeRelativeTo( m_prjDir );
package.SetExt( wxS( "pkg" ) );
KIPLATFORM::IO::LongPathAdjustment( package );
if( package.Exists() )
addFileToZip( package.GetFullPath() );
@ -97,7 +96,6 @@ private:
wxFileSystem fsfile;
wxFileName curr_fn( aFilename );
KIPLATFORM::IO::LongPathAdjustment( curr_fn );
curr_fn.MakeRelativeTo( m_prjDir );
wxString currFilename = curr_fn.GetFullPath();
@ -320,7 +318,6 @@ bool PROJECT_ARCHIVER::Archive( const wxString& aSrcDir, const wxString& aDestFi
wxString oldCwd = wxGetCwd();
wxFileName sourceDir( aSrcDir );
KIPLATFORM::IO::LongPathAdjustment( sourceDir );
wxSetWorkingDirectory( sourceDir.GetFullPath() );

View File

@ -1242,8 +1242,6 @@ bool SETTINGS_MANAGER::BackupProject( REPORTER& aReporter, wxFileName& aTarget )
aTarget.SetExt( FILEEXT::ArchiveFileExtension );
}
KIPLATFORM::IO::LongPathAdjustment( aTarget );
wxString test = aTarget.GetPath();
if( !aTarget.DirExists() && !wxMkdir( aTarget.GetPath() ) )