I am using the smb file download method to download files from a Synology NAS filestation to a Galaxy Tab.
The code is simple enough but I have a problem when the file to be Downloaded does not exist in the source directory: While the DownLoadCompleted code Success parameter is indeed False, the Download method still creates a file entry in the destination folder with a file content of zero bytes. Next time I go to check for missing files in my application, it shows that all the files are there - because the file name has been created, even though the file has nothing in it!
Is this a bug? Surely if it can't copy the file, it should not create the directory entry (or delete it on finding it has failed).
The code is simple enough but I have a problem when the file to be Downloaded does not exist in the source directory: While the DownLoadCompleted code Success parameter is indeed False, the Download method still creates a file entry in the destination folder with a file content of zero bytes. Next time I go to check for missing files in my application, it shows that all the files are there - because the file name has been created, even though the file has nothing in it!
Is this a bug? Surely if it can't copy the file, it should not create the directory entry (or delete it on finding it has failed).