bool MountZip(const boost::filesystem::path& zip_path) {
zip_path_ = zip_path;
+ if (IsMounted()) {
+ LOG(WARNING) << "Mount path(" << mount_path_
+ << ") already mounted, try to unmount";
+ UnmountZip();
+ }
+
if (bf::exists(mount_path_)) {
LOG(WARNING) << "Mount path(" << mount_path_ << ") already exists! "
<< "We will remove it...";