Ejemplo n.º 1
0
 def read_file(self, path):
     """Read file content in binary mode"""
     file = storage.open(path, mode='rb')
     content = file.read()
     file.close()
     return content
Ejemplo n.º 2
0
 def read_file(self, path):
     """Read file content in binary mode"""
     file = storage.open(path, 'rb')
     content = file.read()
     file.close()
     return content
Ejemplo n.º 3
0
 def save_file(self, path, content):
     file = storage.open(path, 'wb')
     file.write(content)
     file.close()
     return path
Ejemplo n.º 4
0
 def read_file(self, path):
     file = storage.open(path, 'rb')
     content = file.read()
     file.close()
     return content
Ejemplo n.º 5
0
 def save_file(self, path, content):
     file = storage.open(path, 'wb')
     file.write(content)
     file.close()
     return path
Ejemplo n.º 6
0
 def read_file(self, path):
     file = storage.open(path, 'rb')
     content = file.read()
     file.close()
     return content