List of usage examples for org.apache.commons.vfs Selectors SELECT_FOLDERS
FileSelector SELECT_FOLDERS
To view the source code for org.apache.commons.vfs Selectors SELECT_FOLDERS.
Click Source Link
From source file:com.newatlanta.appengine.junit.vfs.gae.GaeFolderTestCase.java
private void testFindFiles(FileObject rootObject) throws Exception { FileObject[] findFiles = rootObject.findFiles(Selectors.EXCLUDE_SELF); findFiles = rootObject.findFiles(Selectors.SELECT_ALL); findFiles = rootObject.findFiles(Selectors.SELECT_CHILDREN); findFiles = rootObject.findFiles(Selectors.SELECT_FILES); findFiles = rootObject.findFiles(Selectors.SELECT_FOLDERS); findFiles = rootObject.findFiles(Selectors.SELECT_SELF); findFiles = rootObject.findFiles(Selectors.SELECT_SELF_AND_CHILDREN); }
From source file:org.objectweb.proactive.extensions.dataspaces.vfs.adapter.VFSFileObjectAdapter.java
/** * @param selector//from ww w .ja v a2s. c om * may be null */ private static org.apache.commons.vfs.FileSelector buildFVSSelector(FileSelector selector) { switch (selector) { case EXCLUDE_SELF: return Selectors.EXCLUDE_SELF; case SELECT_ALL: return Selectors.SELECT_ALL; case SELECT_FILES: return Selectors.SELECT_FILES; case SELECT_FOLDERS: return Selectors.SELECT_FOLDERS; case SELECT_CHILDREN: return Selectors.SELECT_CHILDREN; case SELECT_SELF: return Selectors.SELECT_SELF; case SELECT_SELF_AND_CHILDREN: return Selectors.SELECT_SELF_AND_CHILDREN; default: return null; } }