Amazefilemanager: File saving can never succeed

Created on 13 Dec 2017  路  7Comments  路  Source: TeamAmaze/AmazeFileManager

This can never return true:

https://github.com/TeamAmaze/AmazeFileManager/blob/3f6c063942579d983a382e0c010fdc0be351df60/app/src/play/java/com/amaze/filemanager/activities/MainActivity.java#L594

FileUtil.writeUriToStorage(..., getCurrentMainFragment().getCurrentPath());
checks:
FileOutputStream output = new FileOutputStream(file, true);
on a folder resulting in the exception:
java.io.FileNotFoundException: [the current directory]: open failed: EISDIR (Is a directory)
that is catched and returns false:
https://github.com/TeamAmaze/AmazeFileManager/blob/3f6c063942579d983a382e0c010fdc0be351df60/app/src/main/java/com/amaze/filemanager/filesystem/FileUtil.java#L643-L656

Issue-Bug

All 7 comments

Known issue, had planned to fix this.

You should post these issues and assign them to yourself so you don't forget.

why reopen them all?

So that they can be closed when the PR is pulled.

Crashed again: in F-Droid I open the installed apps list then Share to
"Save As..."

@ildar what makes you think this specific issue is to blame?

emm, sorry, I may be wrong and it's more like
https://github.com/TeamAmaze/AmazeFileManager/issues/928 (with NPE at
checkNotNull(Preconditions.java:111))

Was this page helpful?
0 / 5 - 0 ratings

Related issues

organik1 picture organik1  路  4Comments

bluefiberbread picture bluefiberbread  路  3Comments

sjl872964789 picture sjl872964789  路  5Comments

kr-nahid picture kr-nahid  路  5Comments

spocko picture spocko  路  4Comments