6 Jul
2013
6 Jul
'13
6:21 p.m.
Hello *, I need to create a relative symlink. To do so I currently use current_path function: auto current_path = fs::current_path(); BOOST_SCOPE_EXIT(¤t_path) { fs::current_path(current_path); }BOOST_SCOPE_EXIT_END fs::current_path(some_base_path_here); fs::create_symlink ( fs::path("..")/some_subdirectory/image_name.filename() , original_name.filename() ) ; Is there any better way to create a relative symlink? What happens if I call current_path(whatever) in a multi-threaded environment? Is it thread-safe or should I synchronize the access to it? Many thanks, Ovanes