4 from sfa.trust.gid import GID
7 def __init__(self, dir):
9 # create the directory to hold the files, if not existing
10 if not os.path.isdir (self.basedir):
11 os.makedirs(self.basedir)
13 def add_gid(self, gid):
14 fn = os.path.join(self.basedir, gid.get_hrn() + ".gid")
18 gid_list = [GID(filename=cert_file) for cert_file in self.get_file_list()]
21 def get_file_list(self):
23 for cert_file in os.listdir(self.basedir):
24 if os.path.isfile(cert_file):
25 file_list.append(os.path.join(self.basedir, cert_file))