This commit is contained in:
parent
4e848a998e
commit
ce417ec7c8
@ -751,12 +751,13 @@ auto fuse_drive::release_impl(std::string /*api_path*/,
|
||||
|
||||
auto fuse_drive::releasedir_impl(
|
||||
std::string /*api_path*/, struct fuse_file_info *file_info) -> api_error {
|
||||
auto *iter = reinterpret_cast<directory_iterator *>(file_info->fh);
|
||||
auto iter = directory_cache_->get_directory(
|
||||
reinterpret_cast<directory_iterator *>(file_info->fh));
|
||||
if (iter == nullptr) {
|
||||
return api_error::invalid_handle;
|
||||
}
|
||||
|
||||
directory_cache_->remove_directory(iter);
|
||||
directory_cache_->remove_directory(iter.get());
|
||||
return api_error::success;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user