This is my current folder structure WRM_80..是我下载的文件夹。
我在index.js中有这两行代码来下载并在我的电子窗口中显示html
fs.createReadStream('./Report.zip').pipe(unzip.Extract({ path: './'+folderName }));
LoginWindow.loadURL(`file://${__dirname}./`+folderName+`/t01s01q01.html`);
在开发模式下,它工作正常,文件下载到我的index.js所在的文件夹中
我按照帖子中的说明从我的谷歌驱动器下载2个csv文件到我的电脑。这是提供的代码-
library(googledrive)
library(purrr)
## store the URL you have
folder_url <- "https://drive.google.com/drive/folders/0B7tJg2i5HAo2c0VzVFVhLUdQcnM"
## identify this folder on Drive
## let googledrive know this is a file ID or URL, as opposed to fil
我需要从服务器下载文件,获取这些文件的链接,这些文件已被下载到设备以更新状态:
const [ fileLink, setFileLink ] = useState('');
const result = ... // get the link to file somehow
setFileLink(result);
我尝试了以下解决方案:
rn-fetch-blob.这些都是"Null不是对象(计算'RNFetchBlob.DocumentDir')“发生的错误。据我所知,rn-fetch blob不适用于世博。
expo-file-sy
我有一个文件从亚马逊网络服务的S3下载到我的NSTemporaryDirectory使用以下代码:
let downloadFilePath = (NSTemporaryDirectory() as NSString).stringByAppendingPathComponent("FILENAME")
let downloadingFileURL = NSURL(fileURLWithPath:downloadFilePath)
let downloadRequest: AWSS3TransferManagerDownloadRequest = AWSS3Tr