Skip to content

Commit b49fe9b

Browse files
authored
Update s3.js
1 parent 9a946e2 commit b49fe9b

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/publisher/s3.js

+1-18
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,7 @@ function uploadDirectoryToS3(options) {
5353
var count = 0;
5454

5555
files.forEach(function(file){
56-
/**
57-
* Ghetto thing: remove the
58-
* first directory from the
59-
* file path.
60-
*
61-
* If you want to archive the
62-
* contents of /a/b the tar library
63-
* we're using will create a tar
64-
* starting from the b directory.
65-
* Since we only want the contents
66-
* of b, without b itself, we strip
67-
* it out.
68-
*/
69-
var f = path.relative(options.dir, file);
70-
f = f.split('/')
71-
f.shift();
72-
f = f.join('/')
73-
56+
var f = path.relative(options.dir, file);
7457
options.path = file;
7558
options.name = path.join(options.bucketPath || '', f);
7659
options.logger.info("[%s] Uploading %s in s3://%s/%s", options.buildId, file, options.bucket, options.name);

0 commit comments

Comments
 (0)