示例#1
0
文件: service.py 项目: Libreno/swftp
 def prepare_path():
     swift_conn = yield swift_connect()
     swift_filesystem = SwiftFileSystem(swift_conn)
     try:
         yield swift_filesystem.get_container_listing('smtp', '/')
     except swift.NotFound:
         yield swift_filesystem.makeDirectory('/smtp/')
     defer.returnValue(None)
示例#2
0
 def prepare_path():
     swift_conn = yield swift_connect()
     swift_filesystem = SwiftFileSystem(swift_conn)
     try:
         yield swift_filesystem.get_container_listing('smtp', '/')
     except swift.NotFound:
         yield swift_filesystem.makeDirectory('/smtp/')
     defer.returnValue(None)