Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NewDir (0.06 sec)

  1. guava-tests/test/com/google/common/io/FilesFileTraverserTest.java

        File file = newDir("some-dir");
    
        assertThat(Files.fileTraverser().breadthFirst(rootDir)).containsExactly(rootDir, file);
      }
    
      public void testFileTraverser_multipleFilesAndDirectories() throws Exception {
        File fileA = newFile("file-a");
        File fileB = newFile("file-b");
        File dir1 = newDir("dir-1");
        File dir2 = newDir("dir-2");
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Apr 21 20:17:27 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/MoreFilesFileTraverserTest.java

        Path file = newDir("some-dir");
    
        assertThat(MoreFiles.fileTraverser().breadthFirst(rootDir)).containsExactly(rootDir, file);
      }
    
      public void testFileTraverser_multipleFilesAndDirectories() throws Exception {
        Path fileA = newFile("file-a");
        Path fileB = newFile("file-b");
        Path dir1 = newDir("dir-1");
        Path dir2 = newDir("dir-2");
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 09 19:30:52 UTC 2018
    - 3.8K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultModelPathTranslator.java

        }
    
        private Resource alignToBaseDirectory(Resource resource, Path basedir) {
            if (resource != null) {
                String newDir = mayAlignToBaseDirectoryOrNull(resource.getDirectory(), basedir);
                if (newDir != null) {
                    return resource.withDirectory(newDir);
                }
            }
            return resource;
        }
    
        private String alignToBaseDirectory(String path, Path basedir) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. internal/logger/logrotate.go

    	f, err := newFile(path)
    	if err != nil {
    		return fmt.Errorf("unable to create new file at %v: %w", path, err)
    	}
    
    	w.f = f
    
    	return nil
    }
    
    // NewDir creates a new concurrency safe Writer which performs log rotation.
    func NewDir(opts Options) (io.WriteCloser, error) {
    	if err := os.MkdirAll(opts.Directory, os.ModePerm); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top