Skip to content

Conversation

@arafatx
Copy link

@arafatx arafatx commented Oct 25, 2022

Added test command to test dropbox account and run test upload, share, and delete.

eg:

<script_name> test

output:

Test file uploading ...

Uploading "/tmp/dropbox_uploader_test_file" to "/dropbox_uploader/dropbox_uploader_test_file"... DONE
[ OK ]

Test file sharing ...

Share link: https://www.dropbox.com/s/e6xul4bjyk8xdlx/dropbox_uploader_test_file?dl=0
[ OK ]

Test file deleting ...

Deleting "/dropbox_uploader/dropbox_uploader_test_file"... DONE
[ OK ]

Removing local test file ...

The above command 'test' will run automatically after a file config has been created.

Added command to show script version

eg:

<script_name> version

output

Dropbox Uploader v1.0

Added missing return 1 logic for some codes

Added test command to test dropbox account and run test upload, share, and delete.

eg:

<script_name> test

output:

Test file uploading ...
 > Uploading "/tmp/dropbox_uploader_test_file" to "/dropbox_uploader/dropbox_uploader_test_file"... DONE
 [ OK ]

Test file sharing ...
 > Share link: https://www.dropbox.com/s/e6xul4bjyk8xdlx/dropbox_uploader_test_file?dl=0
 [ OK ]

Test file deleting ...
 > Deleting "/dropbox_uploader/dropbox_uploader_test_file"... DONE
 [ OK ]

Removing local test file ...

The above command 'test' will run automatically after a file config has been created.


Added command to show script version

eg: 

<script_name> version


output

Dropbox Uploader v1.0


Added missing return 1 logic for some codes
@arafatx arafatx changed the title Update new code Added dropbox account test and command to show version info Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant