Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for deleteContents (0.93 sec)

  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)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 10.1K bytes
    - Viewed (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.
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 59.4K bytes
    - Viewed (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
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
Back to top