Examples of listFiles()
-
Framework.DirectoryFile.listFiles()
Get a list of all the files in the current directory
@return
-
com.android.sdklib.io.FileOp.listFiles()
Invokes {@link File#listFiles()} on the given {@code file}. Contrary to the Java API, this returns an empty array instead of null when the directory does not exist.
-
com.google.devtools.moe.client.FileSystem.listFiles()
Returns an array of files and directories under path.
-
com.google.gdt.eclipse.designer.util.resources.IResourcesProvider.listFiles()
Returns list of files in subtree of given path.
@param path the '/' separated path.
-
com.ikanow.infinit.e.harvest.extraction.document.file.InfiniteFile.listFiles()
-
com.ikanow.infinit.e.harvest.extraction.document.file.InternalInfiniteFile.listFiles()
-
com.sleepycat.je.log.FileManager.listFiles()
Find JE files, flavor for unit test support.
@param suffix which type of file we're looking for
@return array of file names
-
com.sun.star.wizards.common.FileAccess.listFiles()
lists the files in a given directory
@author rpiterman
@param dir
@param includeFolders
@return
-
com.xebialabs.overthere.OverthereFile.listFiles()
Lists the files in this directory. If this file is not a directory, the outcome is unspecified.
@return the files in this directory, in an unspecified order.
-
de.schlichtherle.io.File.listFiles()
-
edu.sdsc.grid.io.GeneralFile.listFiles()
-
edu.sdsc.grid.io.srb.SRBFile.listFiles()
-
jSimMacs.logic.handler.SSHDataHandler.listFiles()
List all Files in a Directory
@param path
@return Vector of DirectoryEntries
@throws IOException
-
java.io.File.listFiles()
Answers an array of Files representing the file names in the directory represented by this File. If this File is not a directory the result is null
. The Files returned will be absolute if this File is absolute, relative otherwise.
@return an array of Files or null
.
@see #getPath
@see #list()
@see #isDirectory
-
jcifs.smb.SmbFile.listFiles()
e>,
- all servers registered as members of a NetBIOS workgroup if this resource refers to a workgroup in a
smb://workgroup/
URL, - all browseable shares of a server including printers, IPC services, or disk volumes if this resource is a server URL in the form
smb://server/
, - or
null
if the resource cannot be resolved.
@return An array of
SmbFile
objects representing fileand directories, workgroups, servers, or shares depending on the context of the resource URL
net.raymanoz.io.File.listFiles()
org.apache.aries.application.filesystem.IDirectory.listFiles()
@return the list of files in this directory. Files must be in this directoryand not in sub-directories.
org.apache.aries.util.filesystem.IDirectory.listFiles()
@return the list of files in this directory. Files must be in this directoryand not in sub-directories.
org.apache.commons.net.ftp.FTPClient.listFiles()
Using a programmer specified
FTPFileListParser
, obtain a list of file information for a directory or information for just a single file. This information is obtained through the LIST command. The contents of the returned array is determined by the
FTPFileListParser
used. The server may or may not expand glob expressions. You should avoid using glob expressions because the return format for glob listings differs from server to server and will likely cause this method to fail.
@param parser The FTPFileListParser
that should beused to parse the server file listing.
@param pathname The file or directory to list.
@return The list of file information contained in the given path inthe format determined by the parser
parameter.
@exception FTPConnectionClosedException If the FTP server prematurely closes the connection as a result of the client being idle or some other reason causing the server to send FTP reply code 421. This exception may be caught either as an IOException or independently as itself.
@exception IOException If an I/O error occurs while either sending acommand to the server or receiving a reply from the server.
org.apache.commons.net.ftp.FTPSClient.listFiles()
org.apache.ftpserver.ftplet.FileObject.listFiles()
List file objects. If not a directory or does not exist, null will be returned. Files must be returned in alphabetical order.
org.apache.ftpserver.ftplet.FtpFile.listFiles()
List file objects. If not a directory or does not exist, null will be returned. Files must be returned in alphabetical order. List must be immutable.
@return The {@link List} of {@link FtpFile}s
org.apache.hadoop.fs.FileSystem.listFiles()
List the statuses and block locations of the files in the given path. If the path is a directory, if recursive is false, returns files in the directory; if recursive is true, return files in the subtree rooted at the path. If the path is a file, return the file's status and block locations.
@param f is the path
@param recursive if the subdirectories need to be traversed recursively
@return an iterator that traverses statuses of the files
@throws FileNotFoundException when the path does not exist;IOException see specific implementation
org.apache.hadoop.hdfs.DistributedFileSystem.listFiles()
org.exist.util.io.Resource.listFiles()
org.gradle.util.TestFile.listFiles()
org.h2.store.fs.FileSystem.listFiles()
List the files in the given directory.
@param directory the directory
@return the list of fully qualified file names
org.jitterbit.util.file.Folder.listFiles()
Returns all children of this folder that matches the given filter.
@return an array of matching File
s; an empty array is returned if there are nomatching files
org.maqetta.server.IStorage.listFiles()
org.maqetta.server.IVResource.listFiles()
org.nbgit.StatusCache.listFiles()
Lists modified files and all folders that are known to be inside this folder. There are locally modified files present plus any files that exist in the folder in the remote repository.
@param dir folder to list
@return
org.pentaho.platform.api.engine.ISolutionFile.listFiles()
If this is a directory, will list all children files/directories for hierarchical navigation.
org.python.core.util.RelativeFile.listFiles()
org.serviceconnector.api.cln.SCFileService.listFiles()
List files with default operation timeout.
@return the list of files on the remote server
@throws SCServiceException list files from Server failed
error message received from SC
org.voltdb.utils.VoltFile.listFiles()
pt.webdetails.cpf.repository.api.IReadAccess.listFiles()
pt.webdetails.cpf.repository.api.IUserContentAccess.listFiles()
sun.awt.shell.Win32ShellFolder2.listFiles()
@return An array of shell folders that are children of this shell folderobject. The array will be empty if the folder is empty. Returns null
if this shellfolder does not denote a directory.
uk.ac.bbsrc.tgac.miso.tools.run.RunFolderScanner.listFiles()
uk.gov.nationalarchives.droid.container.ContainerSignature.listFiles()
@return a list of all the signature files
uk.org.microbase.filesystem.spi.MicrobaseFS.listFiles()
Returns a set of filenames of all the files in a specified bucket
@param remoteBucket the remote bucket to scan
@return a set of filenames present in the remote bucket
@throws FSOperationNotSupportedException if this operation is notimplemented or is not possible to implement using the transport mechanism used by the provider.
@throws FSException if an error occurred while transferring the file.FSException is usually thrown when a transient error occurs (such as a network problem or a disk becomes full)
| File classesDir = new File(componentDir, "classes");
if (classesDir.exists()) {
list.add(classesDir.toURL());
}
File libDir = new File(componentDir, "lib");
File[] jars = libDir.listFiles(new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.endsWith(".jar") || name.endsWith(".zip");
}
});
if (jars != null) {
|
| return null;
FSDirectory dir = localdp.getDirectory();
File indexRoot = dir.getFile();
if (key == null) {
File[] subIndex = indexRoot.listFiles();
for (File sub : subIndex) {
localDirectoryToMap(sub.getName());
}
return localdp;
}
|
| final HttpSession session = request.getSession();
try {
File cacheDirectory = new File(session.getServletContext()
.getRealPath(
ResourceCacheManager.getInstance().getCacheStorePath()));
File[] files = cacheDirectory.listFiles();
if(files == null)
return;
String key,fName;
for(File file :files){
|
|
File dir = (File)it.next();
if ( dir.exists() && dir.isDirectory()){
File[] entries = dir.listFiles();
if ( entries == null || entries.length == 0 ){
// System.out.println( "deleted " + dir );
|
| if (!libDirectory.exists()) {
return null;
}
//try to get the gradle.jar. It'll be "gradle-[version].jar"
File[] files = libDirectory.listFiles(new FileFilter() {
public boolean accept(File file) {
return GRADLE_CORE_PATTERN.matcher(file.getName()).matches();
}
});
|
| }
public static File[] getGradleHomeLibClasspath() {
File gradleHomeLib = new File(System.getProperty("gradle.home") + "/lib");
if (gradleHomeLib.isDirectory()) {
return gradleHomeLib.listFiles();
}
return new File[0];
}
public static List<File> getNonLoggingJars() {
|
| public static final String MASTER_DIR_NAME = "master";
protected File findBeyondCurrentDir(StartParameter startParameter) {
File searchDir = startParameter.getCurrentDir().getParentFile();
if (searchDir != null && startParameter.isSearchUpwards()) {
for (File file : searchDir.listFiles()) {
if (file.isDirectory() && file.getName().equals(MASTER_DIR_NAME)) {
File settingsFile = new File(file, Settings.DEFAULT_SETTINGS_FILE);
if (settingsFile.isFile()) {
return settingsFile;
}
|
| */
public void cleanup(boolean deleteAll) {
long currentTime = System.currentTimeMillis();
File file = new File(getOutputDirectoryString());
if (file.isDirectory()) {
File[] files = file.listFiles();
for (int i = 0; i < files.length; i++) {
File f = files[i];
if (!deleteAll) {
try {
long ft = getTimeForFileName(f.getName());
|
| */
private static int getLargetFileLengthInDir() {
int largestLen = LOG_FILE_MIN_SIZE;
String logFilePath = DefaultLogFile.getInstance().getLogFilePath();
File dirFile = new File(logFilePath);
File[] fileArr = dirFile.listFiles();
if (fileArr != null) {
for (int i = 0; i < fileArr.length; i++) {
File tempFile = fileArr[i];
if (tempFile.isDirectory()) {
|
| if( index >= currentListing.length && subDirectories.size() > 0 )
{
do
{
File nextDir = (File) subDirectories.removeFirst();
currentListing = nextDir.listFiles(filter);
} while( currentListing.length == 0 && subDirectories.size() > 0 );
index = 0;
}
if( index < currentListing.length )
{
|
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact
coftware#gmail.com.