Hello everyone
I have one problem with cnkFileManager. It doesn’t allow me to copy few files at the same time.
When I try code like this
library.copyFileToExternalStorage ( { listener = listener1, mainFolder = "Folder", newfilename = "1", isPublic = false, isRemovable = true, file = { {filename = "1", baseDir = system.DocumentsDirectory}, }, }) library.copyFileToExternalStorage ( { listener = listener2, mainFolder = "Folder", newfilename = "2", isPublic = false, isRemovable = true, file = { {filename = "2", baseDir = system.DocumentsDirectory}, }, })
it copies only second file. When I try something like this
function listener1 () library.copyFileToExternalStorage ( { listener = listener2, mainFolder = "Folder", newfilename = "2", isPublic = false, isRemovable = true, file = { {filename = "2", baseDir = system.DocumentsDirectory}, }, }) end library.copyFileToExternalStorage ( { listener = listener1, mainFolder = "Folder", newfilename = "1", isPublic = false, isRemovable = true, file = { {filename = "1", baseDir = system.DocumentsDirectory}, }, })
to be sure, that everything will be consistently, it copies only first file.
But how to copy both files?