Examples of listFiles()

@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 Files; 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)

  • Examples of java.io.File.listFiles()

            File f = new File(args[0]);
            if (f.exists()) {
                if (f.isFile()) {
                    ppm2Jpeg(f);
                } else {
                    File[] list = f.listFiles(new FileFilter() {
                        public boolean accept(File pathname) {
                            return pathname.getName().endsWith(".ppm");
                        }
                    });
                    for (int i = 0; i < list.length; i++) {
    View Full Code Here

    Examples of java.io.File.listFiles()

                    path = path.append("j2ee13");
                }
                URL librarySetURL = FileLocator.find(bundle, path, null);                       
                try {
                    File librarySetsDir = new File(FileLocator.toFileURL(librarySetURL).getPath());
                    File[] jars = librarySetsDir.listFiles(new FilenameFilter() {
                       
                        public boolean accept(File dir, String name) {
                            return name.endsWith(".jar");
                        }
                    });
    View Full Code Here

    Examples of java.io.File.listFiles()

            ProcessBuilderFactory.setProcessBuilderFactoryService(new ProcessBuilderFactoryServiceImpl());
            ProcessMarshallerFactory.setProcessMarshallerFactoryService(new ProcessMarshallerFactoryServiceImpl());
            ProcessRuntimeFactory.setProcessRuntimeFactoryService(new ProcessRuntimeFactoryServiceImpl());
            BPMN2ProcessFactory.setBPMN2ProcessProvider(new BPMN2ProcessProviderImpl());
            KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
            for (File subfile: file.listFiles(new FilenameFilter() {
                public boolean accept(File dir, String name) {
                  return name.endsWith(".bpmn") || name.endsWith("bpmn2");
                }})) {
              kbuilder.add(ResourceFactory.newFileResource(subfile), ResourceType.BPMN2);
            }
    View Full Code Here

    Examples of java.io.File.listFiles()

        if (!mDefaultIconDir.exists()) {
          // If the default directory does not exist, try to find another icon theme in the icontheme directory
          File iconDir = new File("icons");
          if (iconDir.exists()) {
            File[] list = iconDir.listFiles();
            if (list.length > 0) {
              mDefaultIconDir = list[0]; // get the first directory
            }
          }
        }
    View Full Code Here

    Examples of java.io.File.listFiles()

            ProcessBuilderFactory.setProcessBuilderFactoryService(new ProcessBuilderFactoryServiceImpl());
            ProcessMarshallerFactory.setProcessMarshallerFactoryService(new ProcessMarshallerFactoryServiceImpl());
            ProcessRuntimeFactory.setProcessRuntimeFactoryService(new ProcessRuntimeFactoryServiceImpl());
            BPMN2ProcessFactory.setBPMN2ProcessProvider(new BPMN2ProcessProviderImpl());
            KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
            for (File subfile: file.listFiles(new FilenameFilter() {
                public boolean accept(File dir, String name) {
                  return name.endsWith(".bpmn") || name.endsWith("bpmn2");
                }})) {
              System.out.println("Loading process from file system: " + subfile.getName());
              kbuilder.add(ResourceFactory.newFileResource(subfile), ResourceType.BPMN2);
    View Full Code Here

    Examples of java.io.File.listFiles()

          filDelete = new File(delFilePath);

          if (filDelete.exists()) {

            File[] strFiles = filDelete.listFiles();//lists the files and folders
            // of current directory

            if (strFiles != null) {

              for (int i = 0; i < strFiles.length; i++) {
    View Full Code Here

    Examples of java.io.File.listFiles()

        try {
          filDuplicate = new File(curWorkDir);

          if (filDuplicate.exists()) {
            File[] strFiles = filDuplicate.listFiles();

            for (int i = 0; i < strFiles.length; i++) {

              if (strFiles[i].isDirectory()) {
                curWorkPath = curWorkDir + strFiles[i].getName() + PATH_SEPERATOR;
    View Full Code Here

    Examples of java.io.File.listFiles()

    */
    public class SameLevelDirSettingsFinderStrategy extends AbstractSettingsFileSearchStrategyTemplate {
        protected File findBeyondCurrentDir(StartParameter startParameter) {
            File parentDir = startParameter.getCurrentDir().getParentFile();
            if (parentDir != null && startParameter.isSearchUpwards()) {
                for (File potentialSameLevelDir : parentDir.listFiles()) {
                    if (potentialSameLevelDir.isDirectory()) {
                        File settingsFile = new File(potentialSameLevelDir, Settings.DEFAULT_SETTINGS_FILE);
                        if (settingsFile.isFile()) {
                            return settingsFile;
                        }
    View Full Code Here

    Examples of java.io.File.listFiles()

        }

        final File templatesDir = new File(homeDir, "templates");
        if (templatesDir.exists())
        {
          final File[] reportFiles = templatesDir.listFiles(new FilesystemFilter(REPORT_EXTENSION, REPORT_EXTENSION, false));
          final List<String> templateNameList = new ArrayList<String>();
          for (final File file : reportFiles)
          {
            final String reportName = computeReportName(file);
            if (reportName == null)
    View Full Code Here

    Examples of java.io.File.listFiles()

        private static long getDirectoryLastModified(final String path) {
          final File pck = new File(System.getProperty("user.dir") + path);
          if ( !pck.exists() || !pck.isDirectory() )
            return Long.MAX_VALUE;

          final File[] classes = pck.listFiles(new FileFilter() {
            public boolean accept(final File pathname) {
              return pathname.isFile() && pathname.getName().endsWith(".class");
            }
          });
    View Full Code Here
    TOP
    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.