Is it posibble to save class File object in other directory? I send this class File object from Client directory to server directory by objectOutputStream. My question is how to create in server directory this class File object.
File f=(File)objectInputStream.readObject();
Path path = FileSystems.getDefault().getPath(".").toAbsolutePath();
path1=Paths.get(path+name); //name is a directory for this special client name
File a= new File(path1.toString());