Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for deleteContents (0.41 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

    internal fun FileSystem.deleteContents(directory: Path) {
      var exception: IOException? = null
      val files =
        try {
          list(directory)
        } catch (fnfe: FileNotFoundException) {
          return
        }
      for (file in files) {
        try {
          if (metadata(file).isDirectory) {
            deleteContents(file)
          }
    
          delete(file)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

        Assumptions.assumeFalse(windows) // Can't deleteContents while the journal is open.
    
        filesystem.deleteRecursively(cacheDir)
        set("a", "a", "a")
        assertValue("a", "a", "a")
      }
    
      /** @see [Issue 2](https://github.com/JakeWharton/DiskLruCache/issues/2) */
      @Test
      fun aggressiveClearingHandlesEdit() {
        Assumptions.assumeFalse(windows) // Can't deleteContents while the journal is open.
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 59.4K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

    import okhttp3.internal.concurrent.Lockable
    import okhttp3.internal.concurrent.Task
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.concurrent.assertLockHeld
    import okhttp3.internal.deleteContents
    import okhttp3.internal.deleteIfExists
    import okhttp3.internal.isCivilized
    import okhttp3.internal.okHttpName
    import okhttp3.internal.platform.Platform
    import okhttp3.internal.platform.Platform.Companion.WARN
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 34.7K bytes
    - Click Count (0)
Back to Top