I am working on a JAVA console application that does file backup and copy operations on Linux servers.
I want to check whether a path on a remote Linux server is valid and copy the file from local to remote server.
How to validate the path on a remote Linux server and copy the file from local to Linux.
I use the below code for validating the path on local server.
public static boolean isValidFile(File file) {
return file != null && file.exists() && file.isFile();
}
Please suggest any articles or code samples that helps to copy files across servers.
Thanks Ashok