Skip to content

Commit

Permalink
[-] misc : assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
mos9527 committed Aug 24, 2021
1 parent a9d324a commit 8ccde42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions demos/clouddrive/batchupload.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
from phone import login
from time import sleep

tracks = r'(your folder here)'
if __name__ == '__main__':
login()

if __name__ == '__main__':
assert login(),"登陆失败"
tracks = input('[-] Path to folder:')
for path in os.listdir(tracks):
full_path = os.path.join(tracks,path)
print('[-] Uploading %s' % path)
Expand Down
2 changes: 1 addition & 1 deletion demos/clouddrive/cloudupload.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def upload_one(path):
print('[-] Response:\n ',publish_result)

if __name__ == "__main__":
login()
assert login(),"登陆失败"
# login via phone,may change as you like
upload_one(input('[-] Path to file:'))

0 comments on commit 8ccde42

Please sign in to comment.