Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for atomicMove (0.07 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/okio/LoggingFilesystem.kt

        mustExist: Boolean,
      ): Sink {
        log("appendingSink($file)")
    
        return super.appendingSink(file, mustExist)
      }
    
      override fun atomicMove(
        source: Path,
        target: Path,
      ) {
        log("atomicMove($source, $target)")
    
        super.atomicMove(source, target)
      }
    
      override fun createDirectory(
        dir: Path,
        mustCreate: Boolean,
      ) {
        log("createDirectory($dir)")
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/io/FaultyFileSystem.kt

        } else {
          renameFaults.remove(file)
        }
      }
    
      @Throws(IOException::class)
      override fun atomicMove(
        source: Path,
        target: Path,
      ) {
        if (renameFaults.contains(source) || renameFaults.contains(target)) throw IOException("boom!")
        super.atomicMove(source, target)
      }
    
      @Throws(IOException::class)
      override fun delete(
        path: Path,
        mustExist: Boolean,
      ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

            }
          }
        }
    
        if (fileSystem.exists(journalFile)) {
          fileSystem.atomicMove(journalFile, journalFileBackup)
          fileSystem.atomicMove(journalFileTmp, journalFile)
          fileSystem.deleteIfExists(journalFileBackup)
        } else {
          fileSystem.atomicMove(journalFileTmp, journalFile)
        }
    
        journalWriter?.closeQuietly()
        journalWriter = newJournalWriter()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheTest.kt

          "delete:/cache/journal.bkp",
          "metadataOrNull:/cache/journal",
          "metadataOrNull:/cache",
          "sink:/cache/journal.tmp",
          "metadataOrNull:/cache/journal",
          "atomicMove:/cache/journal.tmp",
          "atomicMove:/cache/journal",
          "appendingSink:/cache/journal",
        )
        events.clear()
        c.size()
        assertThat(events).isEmpty()
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        setUp(parameters.first, parameters.second)
        val creator = cache.edit("k1")!!
        creator.setString(0, "ABC")
        creator.setString(1, "DE")
        creator.commit()
        cache.close()
        filesystem.atomicMove(journalFile, journalBkpFile)
        assertThat(filesystem.exists(journalFile)).isFalse()
        createNewCache()
        val snapshot = cache["k1"]!!
        snapshot.assertValue(0, "ABC")
        snapshot.assertValue(1, "DE")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
Back to top