Skip to content

Commit 6b9ea5e

Browse files
author
Siddhant Sarkar
authored
Merge pull request nficano#124 from digitalpbk/patch-1
Copy stat of the files into the zip files
2 parents f9e8b5e + aca240b commit 6b9ea5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aws_lambda/aws_lambda.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from imp import load_source
1212
from shutil import copy
1313
from shutil import copyfile
14+
from shutil import copystat
1415
from shutil import copytree
1516
from tempfile import mkdtemp
1617

@@ -354,6 +355,7 @@ def build(
354355

355356
# Copy handler file into root of the packages folder.
356357
copyfile(f, os.path.join(path_to_temp, filename))
358+
copystat(f, os.path.join(path_to_temp, filename))
357359
elif os.path.isdir(f):
358360
destination_folder = os.path.join(path_to_temp, f[len(src) + 1:])
359361
copytree(f, destination_folder)

0 commit comments

Comments
 (0)