Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewDir (0.08 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)
  5. cmd/server-main.go

    	if ctx.IsSet("log-prefix") {
    		fileNameFunc = func() string {
    			return fmt.Sprintf("%s-%s.log", ctx.String("log-prefix"), fmt.Sprintf("%X", time.Now().UTC().UnixNano()))
    		}
    	}
    
    	output, err := logger.NewDir(logger.Options{
    		Directory:       lgDirAbs,
    		MaximumFileSize: int64(lgSize),
    		Compress:        ctx.Bool("log-compress"),
    		FileNameFunc:    fileNameFunc,
    	})
    	if err != nil {
    		return nil, err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 35.2K bytes
    - Viewed (1)
Back to top