Open Sandeep-source opened 1 year ago
@THammami01,
That's my bad.
I had made some changes to the code and also tested it on windows and Linux(Debian).
The code now looks like this:
import java.nio.file.*;
.
.
.
Path path = Paths.get(backupsDir);
Files.createDirectories(path);
.
.
.
This will create directories under C:
drive in windows and at the root in Linux.
Note that creating a dirs in the root may need root privileges, so need to run code as root user or with sudo
in Linux.
Please let me know it need any further changes, Thanks.
I attempted to use VirtualBox to run the first release on Ubuntu, but I encountered the following error:
Even if your changes are valid, there still a problem with the JavaFX jar files that I used bcz they're only compatible with Windows.
It looks separate issue from than previous one I'm looking into that
No worries, I'll see how I can fix it later. 😉
Can you check if the OS is based on Linux and then set the directories paths to start by the user's home directory ~/
?
Then I'll merge your code.
1
@THammami01
I think now its good to go.