1.1 --- a/libfsserver/lib/files/file_provider.cc Thu Oct 20 23:06:59 2022 +0200
1.2 +++ b/libfsserver/lib/files/file_provider.cc Thu Oct 20 23:08:28 2022 +0200
1.3 @@ -43,6 +43,10 @@
1.4 delete _mapper;
1.5
1.6 accessor->close();
1.7 +
1.8 + if (_to_remove)
1.9 + accessor->remove();
1.10 +
1.11 delete accessor;
1.12 }
1.13
1.14 @@ -81,7 +85,7 @@
1.15
1.16 void FileProvider::remove()
1.17 {
1.18 - _mapper->accessor()->remove();
1.19 + _to_remove = true;
1.20 }
1.21
1.22 // vim: tabstop=4 expandtab shiftwidth=4