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 595b5eb commit 05298dfCopy full SHA for 05298df
aws_lambda/aws_lambda.py
@@ -142,8 +142,10 @@ def init(src, minimal=False):
142
for filename in os.listdir(templates_path):
143
if (minimal and filename == 'event.json') or filename.endswith('.pyc'):
144
continue
145
- destination = os.path.join(templates_path, filename)
146
- copy(destination, src)
+ dest_path = os.path.join(templates_path, filename)
+
147
+ if not os.path.isdir(dest_path):
148
+ copy(dest_path, src)
149
150
151
def build(src, requirements=False, local_package=None):
0 commit comments