From ce305de327da462590726813480ba5123a298fe0 Mon Sep 17 00:00:00 2001 From: joshas Date: Thu, 21 May 2020 20:19:33 +0300 Subject: [PATCH] Archive support: return correct root path --- sunflower/plugins/archive_support/zip_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunflower/plugins/archive_support/zip_provider.py b/sunflower/plugins/archive_support/zip_provider.py index a5dc38420..f946e5ccf 100644 --- a/sunflower/plugins/archive_support/zip_provider.py +++ b/sunflower/plugins/archive_support/zip_provider.py @@ -250,7 +250,7 @@ def get_parent(self): def get_root_path(self, path): """Get root for specified path""" - return os.path.dirname(self._path) + return 'file:///' if path.startswith('file://') else os.path.sep def get_parent_path(self, path): """Get parent path for specified"""