Hackfut Security File Manager
Current Path:
/usr/lib/python2.6/site-packages/boto/manage
usr
/
lib
/
python2.6
/
site-packages
/
boto
/
manage
/
📁
..
📄
__init__.py
(1.08 KB)
📄
__init__.pyc
(143 B)
📄
__init__.pyo
(143 B)
📄
cmdshell.py
(14.39 KB)
📄
cmdshell.pyc
(15.97 KB)
📄
cmdshell.pyo
(15.97 KB)
📄
propget.py
(2.44 KB)
📄
propget.pyc
(1.27 KB)
📄
propget.pyo
(1.27 KB)
📄
server.py
(21.35 KB)
📄
server.pyc
(21.2 KB)
📄
server.pyo
(21.2 KB)
📄
task.py
(6.62 KB)
📄
task.pyc
(6.39 KB)
📄
task.pyo
(6.39 KB)
📄
test_manage.py
(806 B)
📄
test_manage.pyc
(1004 B)
📄
test_manage.pyo
(1004 B)
📄
volume.py
(15.91 KB)
📄
volume.pyc
(15.84 KB)
📄
volume.pyo
(15.84 KB)
Editing: test_manage.py
from boto.manage.server import Server from boto.manage.volume import Volume import time print('--> Creating New Volume') volume = Volume.create() print(volume) print('--> Creating New Server') server_list = Server.create() server = server_list[0] print(server) print('----> Waiting for Server to start up') while server.status != 'running': print('*') time.sleep(10) print('----> Server is running') print('--> Run "df -k" on Server') status = server.run('df -k') print(status[1]) print('--> Now run volume.make_ready to make the volume ready to use on server') volume.make_ready(server) print('--> Run "df -k" on Server') status = server.run('df -k') print(status[1]) print('--> Do an "ls -al" on the new filesystem') status = server.run('ls -al %s' % volume.mount_point) print(status[1])
Upload File
Create Folder