Skip to content

Commit

Permalink
test/support/builders/remote/file: Fix path seps
Browse files Browse the repository at this point in the history
Should be remote path, not local one.
  • Loading branch information
sebn committed Sep 21, 2018
1 parent eb19407 commit 24a160f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/support/builders/remote/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const crypto = require('crypto')
const fs = require('fs')
const path = require('path')
const { posix } = require('path')

const RemoteBaseBuilder = require('./base')

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 24a160f

Please sign in to comment.