anggrayudi / anggrayudi/SimpleStorage

CANNOT_CREATE_FILE_IN_TARGET when attempting to save on external drive

Ouverte
#106 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Kotlin
Étoiles
867
Forks
104
Merge moyen
22 j 6 h
PR mergées (30 j)
1

Description

Library version: 1.5.1
OS version: [Android 11]
Device model: [Samsung Galaxy A8]

**Describe the bug**
When invoking DocumentFileUtils.MoveFileTo targeting a folder stored on an external drive (USB SSD in my example) the movement fails.

If the target folder is an internal folder, the move succeeds

Full file permission has been granted, the external folder has been selected using OPEN_DOCUMENT_TREE

**To Reproduce**
1) give application full file permissions

2) select target folder using ACTION_OPEN_DOCUMENT_TREE

3) select file that will be moved

4) start background thread

5) check file can be read and location can be written to

6)
DocumentFileUtils.moveFileTo([any file], this, [Folder on external drive], null, new FileCallBack(){}

**Stacktrace**
[If applicable]

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.