Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs1-24fa
project03
Commits
9fee1912
Commit
9fee1912
authored
6 months ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Update transfer.py
parent
19b54cba
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
transfer.py
+2
-1
transfer.py
with
2 additions
and
1 deletion
+2
-1
transfer.py
View file @
9fee1912
...
...
@@ -59,7 +59,6 @@ trinkey.flush()
print
(
"Connected to Trinkey! Transfering files..."
)
shutil
.
rmtree
(
os
.
path
.
join
(
'src'
,
'__pycache__'
),
True
)
shutil
.
rmtree
(
os
.
path
.
join
(
disk
,
'src'
),
True
)
shutil
.
rmtree
(
os
.
path
.
join
(
'support'
,
'__pycache__'
),
True
)
shutil
.
rmtree
(
os
.
path
.
join
(
disk
,
'__pycache__'
),
True
)
...
...
@@ -69,7 +68,9 @@ for x in os.listdir(disk):
except
(
PermissionError
,
FileNotFoundError
,
OSError
):
pass
shutil
.
rmtree
(
os
.
path
.
join
(
disk
,
'src'
),
True
)
shutil
.
copytree
(
'src'
,
os
.
path
.
join
(
disk
,
'src'
),
dirs_exist_ok
=
True
)
shutil
.
rmtree
(
os
.
path
.
join
(
disk
,
'support'
),
True
)
shutil
.
copytree
(
'support'
,
os
.
path
.
join
(
disk
,
'support'
),
dirs_exist_ok
=
True
)
shutil
.
copy
(
'code.py'
,
os
.
path
.
join
(
disk
,
'code.py'
))
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help