summaryrefslogtreecommitdiff
path: root/tests.as-root
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-09-20 14:22:31 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-09-25 12:50:21 +0000
commit8a003f588136a9f8eda7df876ed6c059dd6658f4 (patch)
tree4d960f970d31c317070691486e8ce767ab162b86 /tests.as-root
parent8bb01ef1b85794b8c865dc1fdb50c02acbbe3216 (diff)
downloadmorph-8a003f588136a9f8eda7df876ed6c059dd6658f4.tar.gz
morphlib: Add SystemMetadataDir class
This provides access to the /baserock directory as if it were a dict, abstracting away the details of how to get data out of it. The abstraction is useful since it is easier to use than accessing /baserock yourself, and allows the storage format to be changed more easily. Keys with / in may be supported in the future. since there have been discussions about allowing morphologies to be placed in subdirectories. Adding this support would require creating and removing directory components when values are set and deleted respectively. Iterating would require using os.walk instead of glob.iglob, since python doesn't support ** in globs.
Diffstat (limited to 'tests.as-root')
0 files changed, 0 insertions, 0 deletions