Revert file path empty

This commit is contained in:
Andrea Cavalli 2020-05-19 19:14:53 +02:00
parent 50d099f9f1
commit 09f6f44b86
1 changed files with 8 additions and 1 deletions

View File

@ -661,7 +661,14 @@ int64 FileView::remote_size() const {
}
string FileView::path() const {
return "";
switch (node_->local_.type()) {
case LocalFileLocation::Type::Full:
return node_->local_.full().path_;
case LocalFileLocation::Type::Partial:
return node_->local_.partial().path_;
default:
return "";
}
}
bool FileView::has_url() const {