From da567fd6c2e0ca9a6d1d3a6a7fc418b87a179d32 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Sun, 22 Aug 2021 09:53:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webdavteambition/store/AliYunDriverFileSystemStore.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/github/zxbu/webdavteambition/store/AliYunDriverFileSystemStore.java b/src/main/java/com/github/zxbu/webdavteambition/store/AliYunDriverFileSystemStore.java index f21e589..a939ca1 100644 --- a/src/main/java/com/github/zxbu/webdavteambition/store/AliYunDriverFileSystemStore.java +++ b/src/main/java/com/github/zxbu/webdavteambition/store/AliYunDriverFileSystemStore.java @@ -144,6 +144,10 @@ public class AliYunDriverFileSystemStore implements IWebdavStore { @Override public long getResourceLength(ITransaction transaction, String path) { + return getResourceLength2(transaction, path); + } + + public long getResourceLength2(ITransaction transaction, String path) { LOGGER.info("getResourceLength: {}", path); TFile tFile = aliYunDriverClientService.getTFileByPath(path); if (tFile == null || tFile.getSize() == null) { @@ -187,7 +191,7 @@ public class AliYunDriverFileSystemStore implements IWebdavStore { if (tFile != null) { StoredObject so = new StoredObject(); so.setFolder(tFile.getType().equalsIgnoreCase("folder")); - so.setResourceLength(getResourceLength(transaction, uri)); + so.setResourceLength(getResourceLength2(transaction, uri)); so.setCreationDate(tFile.getCreated_at()); so.setLastModified(tFile.getUpdated_at()); return so;