@@ -44,29 +44,6 @@ class MainActivity : AppCompatActivity() {
4444 setupFolderPickerCallback()
4545 setupFilePickerCallback()
4646 setupButtonActions()
47-
48- ioScope.launch {
49- // val download = DocumentFileCompat.fromPublicFolder(baseContext, PublicDirectory.DOWNLOADS) ?: return@launch
50- // val folder = download.toRawFile()?.makeFolder("/Aduhp/Bana/Lah/Yoo/Nu", false)
51- // Timber.d("onCreate: ${folder?.basePath}")
52-
53- // val download = DocumentFileCompat.fromPublicFolder(baseContext, PublicDirectory.DOWNLOADS)?.listFiles()?.filter { it.isDirectory } ?: return@launch
54- // val file = DocumentFileCompat.fromUri(baseContext, Uri.parse("content://com.android.providers.downloads.documents/tree/downloads/document/raw%3A%2Fstorage%2Femulated%2F0%2FDownload%2FIKO5%2FWew%2FYoo"))
55- // ?.toWritableDownloadsDocumentFile(baseContext)
56- // ?: return@launch
57- // var file = DocumentFileCompat.fromPublicFolder(baseContext, PublicDirectory.DOWNLOADS, "/Den/Bagak/Kini/Mah", requiresWriteAccess = true) ?: return@launch
58- // file = file?.makeFolder(baseContext, "/Den/Bagak/Kini/Mah") ?: return@launch
59- // val s = contentResolver.persistedUriPermissions.filter { it.uri.isDownloadsDocument }.map { it.uri }
60- // Timber.d("onCreate: $s")
61- // val d = file.isDirectory
62- // val f = file.canModify
63- // val c = file.parentFile
64- // Timber.d("onCreate: ${c?.name}")
65- // val m = file.makeFile(baseContext, "Waduh", "video/mp4")
66- // val e = m?.name
67- // val g = m?.type
68- // Timber.d("NickoDana2: ${m}")
69- }
7047 }
7148
7249 private fun setupButtonActions () {
0 commit comments