mirror of
https://github.com/remotely-save/remotely-save.git
synced 2024-06-07 21:10:45 +00:00
fix size bug
This commit is contained in:
parent
26a426dda8
commit
fb9f4a67b4
@ -986,7 +986,8 @@ async function copyFile(
|
|||||||
const statsLeft = await left.stat(key);
|
const statsLeft = await left.stat(key);
|
||||||
const content = await left.readFile(key);
|
const content = await left.readFile(key);
|
||||||
|
|
||||||
if (statsLeft.size === undefined) {
|
if (statsLeft.size === undefined || statsLeft.size === 0) {
|
||||||
|
// some weird bugs on android not returning size. just ignore them
|
||||||
statsLeft.size = content.byteLength;
|
statsLeft.size = content.byteLength;
|
||||||
} else {
|
} else {
|
||||||
if (statsLeft.size !== content.byteLength) {
|
if (statsLeft.size !== content.byteLength) {
|
||||||
|
Loading…
Reference in New Issue
Block a user