mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-15 10:22:53 +00:00
Moved target folder for download test to private storage, to fix problems with runtime check of permissions in Android 6
This commit is contained in:
@@ -227,8 +227,8 @@ public class TestActivity extends Activity {
|
||||
public RemoteOperationResult downloadFile(RemoteFile remoteFile, String temporalFolder) {
|
||||
// Create folder
|
||||
String path = "/owncloud/tmp/" + temporalFolder;
|
||||
File sdCard = Environment.getExternalStorageDirectory();
|
||||
File folder = new File(sdCard.getAbsolutePath() + "/" + path);
|
||||
File privateFolder = getFilesDir();
|
||||
File folder = new File(privateFolder.getAbsolutePath() + "/" + path);
|
||||
folder.mkdirs();
|
||||
|
||||
DownloadRemoteFileOperation downloadOperation = new DownloadRemoteFileOperation(remoteFile.getRemotePath(), folder.getAbsolutePath());
|
||||
|
||||
Reference in New Issue
Block a user