We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7afe7cf commit aca240bCopy full SHA for aca240b
aws_lambda/aws_lambda.py
@@ -11,6 +11,7 @@
11
from imp import load_source
12
from shutil import copy
13
from shutil import copyfile
14
+from shutil import copystat
15
from shutil import copytree
16
from tempfile import mkdtemp
17
@@ -346,6 +347,7 @@ def build(
346
347
348
# Copy handler file into root of the packages folder.
349
copyfile(f, os.path.join(path_to_temp, filename))
350
+ copystat(f, os.path.join(path_to_temp, filename))
351
elif os.path.isdir(f):
352
destination_folder = os.path.join(path_to_temp, f[len(src) + 1:])
353
copytree(f, destination_folder)
0 commit comments