Browse Source

Remove the long path adjustment for now

Some bugs between archive vs backup project
pcb_db
Marek Roszko 10 months ago
parent
commit
6652d3eca7
  1. 3
      common/project/project_archiver.cpp
  2. 2
      common/settings/settings_manager.cpp

3
common/project/project_archiver.cpp

@ -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() );

2
common/settings/settings_manager.cpp

@ -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() ) )

Loading…
Cancel
Save