pass boost::filesystem::path to createDirectories
This commit is contained in:
parent
59c16265ac
commit
97637c8d1d
2 changed files with 8 additions and 5 deletions
|
@ -214,10 +214,10 @@ set(dbus_DIR "${CMAKE_SOURCE_DIR}/cmake_modules")
|
|||
find_package(dbus)
|
||||
endif()
|
||||
|
||||
if(ENABLE_YAHOO2)
|
||||
set(yahoo2_DIR "${CMAKE_SOURCE_DIR}/cmake_modules")
|
||||
find_package(yahoo2)
|
||||
endif()
|
||||
# if(ENABLE_YAHOO2)
|
||||
# set(yahoo2_DIR "${CMAKE_SOURCE_DIR}/cmake_modules")
|
||||
# find_package(yahoo2)
|
||||
# endif()
|
||||
|
||||
####### Miscallanous ######
|
||||
|
||||
|
|
|
@ -216,6 +216,9 @@ int mainloop() {
|
|||
|
||||
usersReconnecter = new UsersReconnecter(&transport, storageBackend);
|
||||
}
|
||||
else if (!CONFIG_BOOL(config_, "service.server_mode")) {
|
||||
LOG4CXX_WARN(logger, "Registrations won't work, you have specified [database] type=none in config file.");
|
||||
}
|
||||
|
||||
FileTransferManager ftManager(&transport, &userManager);
|
||||
|
||||
|
@ -397,7 +400,7 @@ int main(int argc, char **argv)
|
|||
|
||||
// create directories
|
||||
try {
|
||||
Transport::Util::createDirectories(&config, CONFIG_STRING(&config, "service.working_dir"));
|
||||
Transport::Util::createDirectories(&config, boost::filesystem::path(CONFIG_STRING(&config, "service.working_dir")));
|
||||
}
|
||||
catch (...) {
|
||||
std::cerr << "Can't create service.working_dir directory " << CONFIG_STRING(&config, "service.working_dir") << ".\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue