3 from allmydata.storage.mutable import MutableShareFile
4 from allmydata.storage.immutable import ShareFile
6 def get_share_file(filename):
7 f = open(filename, "rb")
10 if prefix == MutableShareFile.MAGIC:
11 return MutableShareFile(filename)
12 # otherwise assume it's immutable
13 return ShareFile(filename)