From 0c72616da75b393683e4ee8ecb7f4a5f0372edbd Mon Sep 17 00:00:00 2001 From: benson Date: Fri, 16 Jun 2023 22:02:44 +0800 Subject: [PATCH] fixed #131;initial support for nc27 --- appinfo/info.xml | 2 +- appinfo/application.php => lib/AppInfo/Application.php | 0 lib/Tools/Helper.php | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) rename appinfo/application.php => lib/AppInfo/Application.php (100%) diff --git a/appinfo/info.xml b/appinfo/info.xml index fdc0131..b8c52bf 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -20,7 +20,7 @@ download videos from 700+ video sites(youtube,youku,vimo,dailymotion,twitter,fac https://github.com/shiningw/ncdownloader - + diff --git a/appinfo/application.php b/lib/AppInfo/Application.php similarity index 100% rename from appinfo/application.php rename to lib/AppInfo/Application.php diff --git a/lib/Tools/Helper.php b/lib/Tools/Helper.php index 746d96c..3076ab2 100644 --- a/lib/Tools/Helper.php +++ b/lib/Tools/Helper.php @@ -400,7 +400,8 @@ class Helper { if (self::getUID()) { OC_Util::setupFS(); - return Filesystem::getLocalFolder($path); + //get the real path of the file in the filesystem + return \OC\Files\Filesystem::getLocalFile($path); } return ""; }