Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for metadataOrNull (0.07 sec)

  1. okhttp-osgi-tests/src/test/kotlin/okhttp3/osgi/OsgiTest.kt

            .toTypedArray()
        for (classPathEntry in entries) {
          deployFile(classPathEntry.toPath())
        }
      }
    
      private fun RepositoryPlugin.deployFile(file: Path) {
        if (fileSystem.metadataOrNull(file)?.isRegularFile != true) return
        try {
          fileSystem.read(file) {
            put(inputStream(), RepositoryPlugin.PutOptions())
            println("Deployed ${file.name}")
          }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        c.size()
        assertThat(events).containsExactly(
          "metadataOrNull:/cache/journal.bkp",
          "metadataOrNull:/cache",
          "sink:/cache/journal.bkp",
          "delete:/cache/journal.bkp",
          "metadataOrNull:/cache/journal",
          "metadataOrNull:/cache",
          "sink:/cache/journal.tmp",
          "metadataOrNull:/cache/journal",
          "atomicMove:/cache/journal.tmp",
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
Back to top