Questions tagged [apache-commons-vfs]

Apache Commons VFS provides a single API for accessing various different file systems.

Apache Commons VFS provides a single API for accessing various different file systems. It presents a uniform view of the files from various different sources, such as the files on local disk, on an HTTP server, or inside a Zip archive.

156 questions
0
votes
1 answer

NTLM authentication with Apache VFS

I am trying to use Apache VFS to read files inside SharePoint 2013 mounted as a network drive. I use the following code try { StandardFileSystemManager manager = new StandardFileSystemManager(); manager.addProvider("http",…
0
votes
1 answer

Apache VFS on Sharepoint mounted as a drive

Has anyone used apache vfs on SharePoint 2013 mounted as a drive ? I am able to mount SharePoint as a drive, but do not know how to use VFS to monitor files in Document Libraries. I am very new to the topic and any help would be really appreciated.
Puneet
  • 117
  • 11
0
votes
1 answer

Opening xz files with Apache Commons VFS

Is there a way to open XZ compressed files with Apache Commons VFS? It is not currently listed under the supported filesystems but I would imagine someone has tackled writing the necessary code already.
asieira
  • 3,513
  • 3
  • 23
  • 23
0
votes
1 answer

Process existing files on startup in a folder with VFS2

I have multiple FileListeners that process all the files which are inserted in remote folders using the org.apache.commons.vfs2 library. Sometimes I have to stop Tomcat, so if new files are inserted in the folders, they will not be processed…
JMI
  • 1
  • 1
0
votes
3 answers

Java cluster, run task only once

We have a java process, which listen's to a directory X on the file system using apache commons vfs. Whenever a new file is exported to this directory, our process kicks in. We first rename the file to filename.processing and parse the file name,…
0
votes
1 answer

Check if file exists using Apache Commons VFS2

I would like to ask if there is a way how to check if file already exists in the folder using only Apache Commons. I have method which uploads into the SFTP folder but it overwrites current files anytime the method is running. The method is set to…
Filip Kraus
  • 2,714
  • 2
  • 14
  • 16
0
votes
1 answer

Java SFTP specify absolute path

I have used this code for SFTP Java Upload package com.as400samplecode; import java.io.File; import java.io.FileInputStream; import java.util.Properties; import org.apache.commons.vfs2.FileObject; import…
Filip Kraus
  • 2,714
  • 2
  • 14
  • 16
0
votes
0 answers

how to use common vfs to read excel from http server which displays authentication pop up in the browser?

I am new to common vfs. I am trying to read an excel sheet located on http://starpoint.com/... Whenever i use this url on browser, it gives me authentication required pop up.I tried using the above code but it didn't work. StaticUserAuthenticator…
0
votes
2 answers

Commons VFS and Java.net.URL - Adding support for “ram://” protocol

I'm using commons-vfs and for my tests I want to use a ram file system. When I try with new URL("ram:///A/B/sample.jar") I get the following exception: java.net.MalformedURLException: unknown protocol: ram at java.net.URL.(URL.java:592) …
bachr
  • 5,780
  • 12
  • 57
  • 92
0
votes
1 answer

Apache VFS sftp- is getting multiple fileObjects creating multiple sessions or channels?

Consider the following code: FileSystemManager fsManager = VFS.getManager(); FileObject sftpDir = fsManager.resolveFile("sftp://username:password@host/pub/downloads/"); FileObject child1 = sftpDir.getChild("child1.data"); FileObject child2 = …
0
votes
1 answer

Is there a way to set permissions of a remote folder via VFS in Java?

I create a XML and a ZIP file and upload them via SFTP to a server. The folder structure looks something like this: / | |--/incoming | |--/ | |-- file.xml |-- file.zip The folder is…
Christian
  • 707
  • 1
  • 7
  • 15
0
votes
1 answer

sftp with mutual auth using apache vfs

We're trying to sftp to a server that requires mutual authentication. We need to do this programmatically in java. Is there a way to use mutual authentication (client certificates) with apache vfs when connecting to an SSH server?
Ryan Fernandes
  • 8,238
  • 7
  • 36
  • 53
0
votes
1 answer

Stop Apache Commons VFS from trying to use SSL

I am trying to get data from the http://openexchangerates.org API using Apache Commons VFS. I am getting errors that imply that it is trying to use SSL validation - not something I have available via my plan with the website. Is there a way that I…
Serenthia
  • 1,222
  • 4
  • 22
  • 40
0
votes
1 answer

AllFileSelector. How exclude the current directory

With this lines I'm get a list with all files under but also the current directory List fileList = new ArrayList(); FileObject fileObject = ... fileObject.findFiles(new AllFileSelector(), depthwise, fileList); the list…
xedo
  • 1,117
  • 3
  • 18
  • 34
0
votes
1 answer

WSO2 VFS transport process file that not complete

I write a vfs proxy to route files from one folder to another. But recently I'm facing a problem. The vfs transport seems to process a file that not yet completed (I copy a file to the source path), so for example I copy a 18mb file to the source…
Mari_Yaguchi
  • 477
  • 8
  • 25
1 2 3
10
11