Skip to content

Commit

Permalink
Add logging to track data file copy operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbcat committed May 4, 2020
1 parent 97dd0fb commit 2f586ab
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .kdev4/weather_routing_pi.kdev4
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[CMake]
Build Directory Count=1
Current Build Directory Index=0
ProjectRootRelative=./

[CMake][CMake Build Directory 0]
Build Directory Path=file:///home/dsr/Projects/weather_routing_pi/build
Build Type=Debug
CMake Binary=file:///usr/bin/cmake
Environment Profile=
Extra Arguments=
Install Directory=file:///usr/local

[Defines And Includes][Compiler]
Name=GCC
Path=gcc
Type=GCC
4 changes: 3 additions & 1 deletion src/WeatherRouting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,10 @@ void WeatherRouting::CopyDataFiles(wxString from, wxString to)
const wxString fileTo = to + next;
if (wxDirExists(fileFrom))
CopyDataFiles(fileFrom, fileTo);
else
else{
wxLogMessage( _T("WeatherRouting copy file: " + fileFrom + _T(" to ") + fileTo));
wxCopyFile(fileFrom, fileTo);
}
b = dir.GetNext(&next);
}
}
Expand Down
3 changes: 3 additions & 0 deletions weather_routing_pi.kdev4
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Project]
Manager=KDevCMakeManager
Name=weather_routing_pi

0 comments on commit 2f586ab

Please sign in to comment.