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.
2 parents f9e8b5e + aca240b commit 6b9ea5eCopy full SHA for 6b9ea5e
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
@@ -354,6 +355,7 @@ def build(
354
355
356
# Copy handler file into root of the packages folder.
357
copyfile(f, os.path.join(path_to_temp, filename))
358
+ copystat(f, os.path.join(path_to_temp, filename))
359
elif os.path.isdir(f):
360
destination_folder = os.path.join(path_to_temp, f[len(src) + 1:])
361
copytree(f, destination_folder)
0 commit comments