Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

cli files on Windows #1159

Merged
merged 2 commits into from
Dec 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cli/commands/files/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function addPipeline (index, addStream, list, argv) {
originalPath: file.path
})),
pull.map((file) => ({
path: wrapWithDirectory ? path.join(WRAPPER, file.path) : file.path,
path: wrapWithDirectory ? WRAPPER + file.path : file.path,
content: fs.createReadStream(file.originalPath)
})),
addStream,
Expand Down
8 changes: 2 additions & 6 deletions src/cli/commands/files/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ const print = require('../../utils').print

function checkArgs (hash, outPath) {
// format the output directory
if (!outPath.endsWith('/')) {
outPath += '/'
}

if (!outPath.startsWith('/')) {
outPath = path.join('/', outPath)
if (!outPath.endsWith(path.sep)) {
outPath += path.sep
}

return outPath
Expand Down