Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for newDir (0.09 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)
  6. src/cmd/buildid/buildid.go

    	}
    
    	newID := id[:strings.LastIndex(id, "/")] + "/" + buildid.HashToString(hash)
    	if len(newID) != len(id) {
    		log.Fatalf("%s: build ID length mismatch %q vs %q", file, id, newID)
    	}
    
    	if len(matches) == 0 {
    		return
    	}
    
    	f, err = os.OpenFile(file, os.O_RDWR, 0)
    	if err != nil {
    		log.Fatal(err)
    	}
    	if err := buildid.Rewrite(f, matches, newID); err != nil {
    		log.Fatal(err)
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Jun 21 19:58:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. compat/maven-model/src/test/java/org/apache/maven/model/v4/ModelXmlTest.java

            Model model = Model.newBuilder(true).properties(props).build();
            String xml = toXml(model);
    
            for (int i = 0; i < 10; i++) {
                String newStr = toXml(fromXml(xml));
                assertEquals(newStr, xml);
            }
        }
    
        @Test
        void testNamespaceInXmlNode() throws XMLStreamException {
            String xml = "<project xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. src/cmd/api/testdata/src/pkg/p4/p4.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p4
    
    type Pair[T1 interface{ M() }, T2 ~int] struct {
    	f1 T1
    	f2 T2
    }
    
    func NewPair[T1 interface{ M() }, T2 ~int](v1 T1, v2 T2) Pair[T1, T2] {
    	return Pair[T1, T2]{f1: v1, f2: v2}
    }
    
    func (p Pair[X1, _]) First() X1 {
    	return p.f1
    }
    
    func (p Pair[_, X2]) Second() X2 {
    	return p.f2
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Dec 02 16:29:41 UTC 2022
    - 552 bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolutionPolicy.java

         * artifact, closer to the entry point, is selected
         */
        @Configuration(name = "closer-first", value = "true")
        private boolean closerFirst = true;
    
        /**
         * newer artifact is selected
         */
        @Configuration(name = "newer-first", value = "true")
        private boolean newerFirst = true;
    
        public MetadataGraphEdge apply(MetadataGraphEdge e1, MetadataGraphEdge e2) {
            int depth1 = e1.getDepth();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/searchlist/ApiAdminSearchlistAction.java

                    final String newId = ComponentUtil.getCrawlingInfoHelper().generateId(entity);
                    final String oldId = (String) entity.get(fessConfig.getIndexFieldId());
                    if (!newId.equals(oldId)) {
                        entity.put(fessConfig.getIndexFieldId(), newId);
                        entity.remove(fessConfig.getIndexFieldVersion());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Jul 24 09:03:45 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top