This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
387 additions
and
284 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
def print_help(version): | ||
print("\n ,,, ,,,") | ||
print(" &@@@@@@@@@@@@@ @@@@@@@@@@@@@@") | ||
print(" @@@@@@@# %@@@@@# @@@@@@@@@@@@@@@@@@@@") | ||
print(" @@@@@@ #@@@ &@@@@@@@ @@@@@@") | ||
print(" @@@@@ @@@@ @@@@@@@ @@@@@") | ||
print(" @@@@ @@@@@@@@@ @@@@@") | ||
print("@@@@@ @@@@@@@ @@@@") | ||
print("@@@@@ @@@@@@ @@@@#") | ||
print("@@@@@ @@@@@@ @@@@,") | ||
print("&@@@@ &@@@@@@@@ *@@@@") | ||
print(" @@@@@ @@@@@@@ @@@ @@@@@") | ||
print(" @@@@@ *@@@@@@# @@@ @@@@@") | ||
print(" @@@@@@# @@@@@@@@ @@@@# @@@@@@") | ||
print(" *@@@@@@@@@@@@@@@@@@ @@@@@@@@%@@@@@@@@") | ||
print(" #@@@@@@@@@@@@ *@@@@@@@@@@@*\n") | ||
print("InfiniDrive v" + version + " - An unlimited Google Drive storage solution") | ||
print("Based on a project by David Berdik, Steven Myrick, and Noah Greenberg") | ||
print("Developed and maintained by David Berdik and Maitree Rawat\n") | ||
print(">> help - Displays this help command.") | ||
print(">> upload <file path OR http/https URL> <optional: file name> - Uploads specified file to Google Drive") | ||
print(">> list - Lists the names of all InfiniDrive files") | ||
print(">> rename <current file name> <new file name> - Renames the file with the specified name to the specified new name") | ||
print(">> download <file name> <file path> - Downloads the contents of the specified file name to the specified file path") | ||
print(">> delete <file name> <optional flag: force-delete> - Deletes the specified InfiniDrive file") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
class requirements: | ||
def __init__(self): | ||
if self.check_imports() and self.check_credentials(): | ||
return | ||
quit() | ||
|
||
def check_imports(self): | ||
try: | ||
import array, gc, libs.driveAPI as driveAPI, math, os, requests, sys, time | ||
from binascii import crc32 | ||
from io import BytesIO | ||
from libs.bar import getpatchedprogress | ||
from PIL import Image | ||
from progress.bar import ShadyBar | ||
from progress.spinner import Spinner | ||
from tabulate import tabulate | ||
from libs.uploadHandler import handle_upload_fragment | ||
except (ModuleNotFoundError, ImportError) as error: | ||
print('\nOops! ', end = ' ') | ||
print(error) | ||
print('\nOne or more InfiniDrive dependencies are not installed on your system.') | ||
print('Using pip, you can install these dependencies using one of the following commands from the root InfiniDrive directory:') | ||
print('\t1. pip install -r requirements.txt\n\t2. python -m pip install -r requirements.txt') | ||
print('\nMore information is available in \'README.md\' as well as online at https://github.com/DavidBerdik/InfiniDrive') | ||
return False | ||
return True | ||
|
||
def check_credentials(self): | ||
import os | ||
if not os.path.exists('credentials.json'): | ||
print('InfiniDrive could not start because you have not provided a \'credentials.json\' file.') | ||
print('Please do so and try again. Instructions for doing this are available in \'README.md\'') | ||
print('as well as online at https://github.com/DavidBerdik/InfiniDrive') | ||
return False | ||
elif not os.path.exists('token.pickle'): | ||
print('Please complete account authentication using the following URL.') | ||
print('You can then run your previous command again.\n') | ||
import libs.driveAPI as driveAPI | ||
driveAPI.get_service() | ||
return False | ||
return True | ||
|
||
requirements() |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.