Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 128 for newDir (0.05 seconds)

  1. android/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");
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  2. 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 {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbFileTest.java

            @BeforeEach
            void setUp() throws CIFSException {
                doReturn(mockTreeHandle).when(smbFile).ensureTreeConnected();
                when(mockLocator.getUNCPath()).thenReturn("\\localhost\share\newdir");
                when(mockLocator.getShare()).thenReturn("share");
                // Mock tree handle's getConfig() to return our mock config
                when(mockTreeHandle.getConfig()).thenReturn(mockConfig);
            }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  4. 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
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue May 27 15:18:36 GMT 2025
    - 35.9K bytes
    - Click Count (4)
  5. 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
    }
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 552 bytes
    - Click Count (0)
  6. 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;
    
        @Override
        public MetadataGraphEdge apply(MetadataGraphEdge e1, MetadataGraphEdge e2) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  7. src/cmd/api/testdata/src/pkg/p4/golden.txt

    pkg p4, func Clone //deprecated
    pkg p4, func Clone[$0 interface{ ~[]$1 }, $1 interface{}]($0) $0
    pkg p4, func NewPair[$0 interface{ M }, $1 interface{ ~int }]($0, $1) Pair[$0, $1]
    pkg p4, method (Pair[$0, $1]) First() $0
    pkg p4, method (Pair[$0, $1]) Second() $1
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Jul 24 16:04:17 GMT 2025
    - 329 bytes
    - Click Count (0)
  8. 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());
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 12.2K bytes
    - Click Count (0)
  9. 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"
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 4K bytes
    - Click Count (0)
  10. internal/logger/legacy.go

    // Legacy envs
    const (
    	legacyEnvAuditLoggerHTTPEndpoint = "MINIO_AUDIT_LOGGER_HTTP_ENDPOINT"
    	legacyEnvLoggerHTTPEndpoint      = "MINIO_LOGGER_HTTP_ENDPOINT"
    )
    
    // SetLoggerHTTPAudit - helper for migrating older config to newer KV format.
    func SetLoggerHTTPAudit(scfg config.Config, k string, args http.Config) {
    	if !args.Enabled {
    		// Do not enable audit targets, if not enabled
    		return
    	}
    	scfg[config.AuditWebhookSubSys][k] = config.KVS{
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Aug 03 09:47:07 GMT 2023
    - 2K bytes
    - Click Count (0)
Back to Top