aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/src/meshbay_node/daemon.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/daemon.py')
-rw-r--r--packages/meshbay-node/src/meshbay_node/daemon.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/meshbay-node/src/meshbay_node/daemon.py b/packages/meshbay-node/src/meshbay_node/daemon.py
index 022553e..557b523 100644
--- a/packages/meshbay-node/src/meshbay_node/daemon.py
+++ b/packages/meshbay-node/src/meshbay_node/daemon.py
@@ -39,7 +39,7 @@ from pathlib import Path
import uvicorn
from meshbay_common import MNP_VERSION
from meshbay_common.background import spawn
-from meshbay_common.paths import fold
+from meshbay_common.paths import fold, long_path
from meshbay_common.protocol import MNP
from meshbay_node import uploads as uploads_mod
@@ -1209,8 +1209,8 @@ class NodeDaemon(EnrichmentMixin):
for path in uploads_mod.orphaned_parts(
uploads_mod.find_parts(roots.roots), live, when):
try:
- size = path.stat().st_size
- path.unlink()
+ size = os.stat(long_path(path)).st_size
+ os.unlink(long_path(path))
except OSError as exc:
log.warning("Could not remove abandoned upload %s: %s",
path.name, exc)