From 695cfb0382996b88c634a3803666bec7477bcee2 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 17 Feb 2014 11:36:46 -0500 Subject: [PATCH] handle escape chars in hrn --- sfa/trust/hierarchy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sfa/trust/hierarchy.py b/sfa/trust/hierarchy.py index 8c2daf21..89b680c8 100644 --- a/sfa/trust/hierarchy.py +++ b/sfa/trust/hierarchy.py @@ -111,7 +111,11 @@ class Hierarchy: def get_auth_filenames(self, xrn): hrn, type = urn_to_hrn(xrn) - leaf = get_leaf(hrn) + if '\\' in hrn: + hrn = hrn.replace('\\', '') + leaf = hrn + else: + leaf = get_leaf(hrn) parent_hrn = get_authority(hrn) directory = os.path.join(self.basedir, hrn.replace(".", "/")) -- 2.47.0