How to make FileAlterationObserver
to observe a remote directory?
This can accept a String
path or a Java File
. Both the cases it will look for the directory in local context. I have a directory in remote server file system.
It would be also helpful if anyone tell me how to create a new File
object referring to the file in the remote directory.
Example:
File file = new File("remote directory path");
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…