From da720c00aea567ab319bc4b10c92cfb2a93e2a2b Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 17 Feb 2014 11:35:28 -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..93de94bf 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.43.0