Skip to content

Commit

Permalink
serverless#5947: Handle creation of files under subfolder name starti…
Browse files Browse the repository at this point in the history
…ng with dot
  • Loading branch information
endeepak committed Apr 4, 2019
1 parent d9a3fd5 commit 8981cbc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/plugins/aws/invokeLocal/index.js
Expand Up @@ -302,12 +302,10 @@ class AwsInvokeLocal {
Object.keys(zip.files)
.map(filename => zip.files[filename].async('nodebuffer').then(fileData => {
if (filename.endsWith(path.sep)) {
mkdirp.sync(path.join(
'.serverless', 'invokeLocal', 'artifact', filename));
return BbPromise.resolve();
}
mkdirp.sync(path.join(
'.serverless', 'invokeLocal', 'artifact'));
'.serverless', 'invokeLocal', 'artifact', path.dirname(filename)));
return fs.writeFileAsync(path.join(
'.serverless', 'invokeLocal', 'artifact', filename), fileData, {
mode: zip.files[filename].unixPermissions,
Expand Down

0 comments on commit 8981cbc

Please sign in to comment.