Simply run the team1.py in Python 3 to execute the program
Build this project as '.jar' and execute the following command in terminal (where you .jar file is located):
java -jar team1-downloader.jar "<url>" <path>
Alternatively, you can use javac to compile all java files and run this command:
java team1.downloader.AppMain "<url>" <path>
With raw java class:
java team1.downloader.AppMain "https://nodejs.org/dist/v8.11.1/node-v8.11.1-linux-x64.tar.xz" ./test-dir
With .jar package:
java -jar team1-downloader.jar "https://nodejs.org/dist/v8.11.1/node-v8.11.1-linux-x64.tar.xz" ./test-dir
- RenameFile does not work in root directory, please download the file into a folder.
- Windows cmd (or PowerShell) does not support ASCII Escape codes for removing the console line (Which is a Terminal standard that Windows does not followed). This is for better visual effect. Therefore, we recommend to use bash terminal to execute the program.