From 24a160fbf28931398fe44b35b4a3389cefe906b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Nicouleaud?= Date: Fri, 21 Sep 2018 23:32:41 +0200 Subject: [PATCH] test/support/builders/remote/file: Fix path seps Should be remote path, not local one. --- test/support/builders/remote/file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/support/builders/remote/file.js b/test/support/builders/remote/file.js index 16d53f0df..aaa5c1649 100644 --- a/test/support/builders/remote/file.js +++ b/test/support/builders/remote/file.js @@ -2,7 +2,7 @@ const crypto = require('crypto') const fs = require('fs') -const path = require('path') +const { posix } = require('path') const RemoteBaseBuilder = require('./base') @@ -81,7 +81,7 @@ module.exports = class RemoteFileBuilder extends RemoteBaseBuilder { ) const parentDir = await this.cozy.files.statById(doc.dir_id) - doc.path = path.join(parentDir.attributes.path, doc.name) + doc.path = posix.join(parentDir.attributes.path, doc.name) return doc }