THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
No Format |
---|
java -jar target/trySimpleVfsSftp-1.0-SNAPSHOT-jar-with-dependencies.jar |
Sample Output
If the remote system has the following files in the /data/source/fires/smoke directory:
No Format |
---|
README.txt smoke20070328_wkt.txt smoke20070426_wkt.txt smoke20070430.txt |
The middle two with "_wkt" in their names should be retrieved.
No Format |
---|
SFTP download Mar 25, 2008 1:00:44 PM org.apache.commons.vfs.VfsLog info INFO: Using "/tmp/vfs_cache" as temporary files store. SFTP connection successfully established to sftp://sftpremote.example.com/data/source/fires/smoke Examining remote file sftp://sftpremote.example.com/data/source/fires/smoke/README.txt Filename does not match, skipping file ./README.txt Examining remote file sftp://sftpremote.example.com/data/source/fires/smoke/smoke20070328_wkt.txt Standard local path is /extra/data/fires/smoke/smoke20070328_wkt.txt Resolved local file name: file:///extra/data/fires/smoke/smoke20070328_wkt.txt ### Retrieving file ### Examining remote file sftp://sftpremote.example.com/data/source/fires/smoke/smoke20070329smoke20070426_wkt.txt FilenameStandard does local path is /extra/data/fires/smoke/smoke20070426_wkt.txt Resolved local file name: file:///extra/data/fires/smoke/smoke20070426_wkt.txt ### Retrieving file ### Examining remote file sftp://sftpremote.example.com/data/source/fires/smoke/smoke20070430.txt Filename does not match, skipping file ./smoke20070329smoke20070430.txt |
There should now be files matching the filePatternString
in the local machine directory "/extra/data/fires/smoke".