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 }