validateRemotePath(configuration.getNewRemotePath());
}
private static void validateLocalPath(String localPath) throws DropboxException {
if (localPath == null || localPath.equals("")) {
throw new DropboxException("option <localPath> is not present or not valid!");
}
File file = new File(localPath);
if (!file.exists()) {
throw new DropboxException("option <localPath> is not an existing file or directory!");
}
}