question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CANNOT_CREATE_FILE_IN_TARGET

See original GitHub issue

If copying the same file to same destionation with

@Override
            public void onConflict(@NotNull DocumentFile destinationFile, @NotNull FileCallback.FileConflictAction action) {
                action.confirmResolution(ConflictResolution.REPLACE);
            }

the app tombstones Works only the first time…

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:76 (28 by maintainers)

github_iconTop GitHub Comments

1reaction
anggrayudicommented, Apr 30, 2021

Normal moveFileTo() uses renameTo() when possible, but it requires storage access. renameTo() can move 1GB file in a second when the source and target files are located in the same file partition.

1reaction
anggrayudicommented, Apr 30, 2021

0.5.3 has been released. Wait for several minutes until it is available on Maven.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FileSystem on Cordova 3.4.0 fails "Could not create target file"
I get an error message stating "Could not create target file", I googled around and thought to change my "fullpath" to "toURL()" but...
Read more >
Cannot create file in "/storage/emulated/0/Documents" with ...
Hi,. I am not able to create any file using "System.IO.File.Create" API at following location with my app targeted to Android 11 (...
Read more >
Unable to create target directory - Support - PDQ
Some possible causes could be: AntiVirus\Security software interfering with temporary directories, processes, and services on target computers.
Read more >
RSTXPDFT4 - Can't create files in target "PDF file name"
Hi, I am trying to create a PDF file in a SAP directory using the program RSTXPDFT4 . ... RSTXPDFT4 - Can't create...
Read more >
[WARNING] Cannot create filesystem for url target/test-classes
I tried this, but it doesn't work. Perhaps I did not understand correctly. Do you mean literally create file with this content on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found