Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- В таком случае получаю ошибку
- val docUri= DocumentFile.fromTreeUri(BaseApplication.context, Uri.parse(uriPath))
- if (docUri!=null && docUri.exists()){
- docUri.createFile(mimeType, fileName)
- }
- Ошибка
- Failed to open for writing: java.io.FileNotFoundException: open failed: EISDIR (Is a directory)
- А в таком варианте все работает
- DocumentFile.fromTreeUri(BaseApplication.context, Uri.parse(uriPath))?.createFile(mimeType, fileName)
- В чем проблема?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement