Skip to content

Commit

Permalink
Transfer file fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HojdaAdelin committed Jun 26, 2023
1 parent 1039195 commit 3447249
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,5 @@ Ocean theme
- [x] Theme selection
- [x] Redesign help command
- [x] Open current directory in explorer
- [ ] Transfer a file to a new directory
- [ ] Copy a file and paste to a new directory
- [x] Transfer a file to a new directory
- [x] Copy a file and paste to a new directory
1 change: 1 addition & 0 deletions src/Manager/TransferFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ void TransferFile() {
fs::copy_file(selectedFilePath, destinationPath);

std::cout << "File transferred to the current directory." << std::endl;
deleteFile(selectedFilePath);
} else {
std::cout << "No file selected. Use 'select file' first." << std::endl;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Service/CommandsHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ void help(std::string ServiceString) {
if (ServiceString == "help") {
commandHelp();
} else if (ServiceString == "version") {
std::cout << "\nVersion: 1.3.1\n";
std::cout << "\nVersion: 1.3.2\n";
} else if (ServiceString == "log") {
SetConsoleTextAttribute(colorAtribute, legionEnv());
std::cout << "\n$LegionCode v1.3.1\n";
std::cout << "\n$LegionCode v1.3.2\n";
SetConsoleTextAttribute(colorAtribute, 15);
std::cout << "\n-Git checkout\n-Git branch\n-Directory opener\n-Help redesign\n-Dark theme\n-Vulcan theme\n-Ocean theme\n-Transfer file\n-Select file\n";
std::cout << "\n-Git checkout\n-Git branch\n-Directory opener\n-Help redesign\n-Dark theme\n-Vulcan theme\n-Ocean theme\n-Transfer file\n-Select file\n-Transfer file remove after operation\n";
} else if (ServiceString == ".git" || ".bug" || ".source") {
WebOpener(ServiceString);
}
Expand Down

0 comments on commit 3447249

Please sign in to comment.