0

我有一个小节点脚本,它从 gopro 视频文件中读取元数据以获得 Max speed 。我想在不复制磁盘的情况下访问这些文件,但无法让节点访问 Windows 虚拟文件夹

当 path = "c:...\folder\file" OK 当 path "This PC\folder\file" KO

代码:

    const chemin = 'Ce PC/HERO7 BLACK/GoPro MTP Client Disk Volume/DCIM/100GOPRO'
Error: ENOENT: no such file or directory, scandir 'Ce PC/HERO7 BLACK/GoPro MTP Client Disk Volume/DCIM/100GOPRO'
    at Object.readdirSync (fs.js:790:3)
    at Object.<anonymous> (D:\git\derusher\gp_telemetry.js:8:16)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
4

0 回答 0