Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,278 for file2 (0.02 seconds)

  1. android/guava/src/com/google/common/io/Files.java

        checkNotNull(file2);
        if (file1 == file2 || file1.equals(file2)) {
          return true;
        }
    
        /*
         * Some operating systems may return zero as the length for files denoting system-dependent
         * entities such as devices or pipes, in which case we must fall back on comparing the bytes
         * directly.
         */
        long len1 = file1.length();
        long len2 = file2.length();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jan 05 22:13:21 GMT 2026
    - 32.8K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

            // Calling getFile() multiple times should return the same file
            ContentOutputStream cos = new ContentOutputStream(5, Curl.tmpDir);
            cos.write(new byte[] { 0, 1, 2, 3, 4, 5 });
            File file1 = cos.getFile();
            File file2 = cos.getFile();
            assertEquals(file1.getAbsolutePath(), file2.getAbsolutePath());
            assertTrue(file1.exists());
            cos.close();
        }
    
        @Test
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 12:00:34 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  3. src/archive/tar/writer_test.go

    			testClose{nil},
    		},
    	}, {
    		// This file was produced using GNU tar v1.26:
    		//	echo "Slartibartfast" > file.txt
    		//	ln file.txt hard.txt
    		//	tar -b 1 --format=ustar -c -f hardlink.tar file.txt hard.txt
    		file: "testdata/hardlink.tar",
    		tests: []testFnc{
    			testHeader{Header{
    				Typeflag: TypeReg,
    				Name:     "file.txt",
    				Size:     15,
    				Mode:     0644,
    				Uid:      1000,
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Dec 15 16:34:13 GMT 2025
    - 40.2K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

            Crawler.Options options = new Crawler.Options();
            options.fileConfigIds = "file1,file2";
    
            List<String> result = options.getFileConfigIdList();
            assertNotNull(result);
            assertEquals(2, result.size());
            assertTrue(result.contains("file1"));
            assertTrue(result.contains("file2"));
        }
    
        @Test
        public void test_Options_getFileConfigIdList_withSingleId() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 30.8K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/job/IndexExportJobTest.java

            indexExportJob.execute();
    
            final Path file = tempDir.resolve("example.com/page.html");
            assertTrue(Files.exists(file));
            try {
                final String html = Files.readString(file, StandardCharsets.UTF_8);
                assertTrue(html.contains("fess:cache"));
            } catch (final IOException e) {
                fail("Failed to read file: " + e.getMessage());
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 09:08:38 GMT 2026
    - 66.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

            crawlJob.fileConfigIds(new String[] { "file1" });
            crawlJob.dataConfigIds(new String[] { "data1", "data2", "data3" });
    
            String result = crawlJob.execute();
    
            assertNotNull(result);
            assertTrue(result.contains("Web  Config Id: web1 web2"));
            assertTrue(result.contains("File Config Id: file1"));
            assertTrue(result.contains("Data Config Id: data1 data2 data3"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 25K bytes
    - Click Count (0)
  7. src/archive/tar/reader_test.go

    			},
    			Format: FormatPAX,
    		}},
    	}, {
    		file: "testdata/pax-bad-hdr-file.tar",
    		err:  ErrHeader,
    	}, {
    		file: "testdata/pax-bad-hdr-large.tar.bz2",
    		err:  ErrFieldTooLong,
    	}, {
    		file: "testdata/pax-bad-mtime-file.tar",
    		err:  ErrHeader,
    	}, {
    		file: "testdata/pax-pos-size-file.tar",
    		headers: []*Header{{
    			Name:     "foo",
    			Mode:     0640,
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Dec 30 15:28:53 GMT 2025
    - 47.5K bytes
    - Click Count (0)
  8. docs/en/docs/tutorial/request-files.md

    ///
    
    ## Import `File` { #import-file }
    
    Import `File` and `UploadFile` from `fastapi`:
    
    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[3] *}
    
    ## Define `File` Parameters { #define-file-parameters }
    
    Create file parameters the same way you would for `Body` or `Form`:
    
    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[9] *}
    
    /// info
    
    `File` is a class that inherits directly from `Form`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7K bytes
    - Click Count (0)
  9. docs/ko/docs/tutorial/static-files.md

    # 정적 파일 { #static-files }
    
    `StaticFiles`를 사용하면 디렉터리에서 정적 파일을 자동으로 제공할 수 있습니다.
    
    ## `StaticFiles` 사용 { #use-staticfiles }
    
    * `StaticFiles`를 임포트합니다.
    * 특정 경로에 `StaticFiles()` 인스턴스를 "마운트"합니다.
    
    {* ../../docs_src/static_files/tutorial001_py310.py hl[2,6] *}
    
    /// note | 기술 세부사항
    
    `from starlette.staticfiles import StaticFiles`를 사용할 수도 있습니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 2K bytes
    - Click Count (0)
  10. docs/uk/docs/tutorial/request-files.md

    Це необхідно, оскільки завантажені файли передаються у вигляді «form data».
    
    ///
    
    ## Імпорт `File` { #import-file }
    
    Імпортуйте `File` та `UploadFile` з `fastapi`:
    
    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[3] *}
    
    ## Визначення параметрів `File` { #define-file-parameters }
    
    Створіть параметри файлів так само як ви б створювали `Body` або `Form`:
    
    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[9] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 11K bytes
    - Click Count (0)
Back to Top