mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-03-08 00:00:05 +08:00
Make it a priority to use filesystemName to create FileSystem object
This commit is contained in:
@@ -184,7 +184,7 @@ FileTransfer.prototype.download = function(source, target, successCallback, erro
|
||||
entry.isFile = result.isFile;
|
||||
entry.name = result.name;
|
||||
entry.fullPath = result.fullPath;
|
||||
entry.filesystem = new FileSystem(result.filesystem == window.PERSISTENT ? 'persistent' : 'temporary');
|
||||
entry.filesystem = new FileSystem(result.filesystemName || (result.filesystem == window.PERSISTENT ? 'persistent' : 'temporary'));
|
||||
successCallback(entry);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user