Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: third_party/libadblockplus/delete_dir.py

Issue 29670555: Issue 6264 - Can't prepare libadblockplus dependencies (Closed)
Left Patch Set: Renamed "clear_cache.py" Created Jan. 17, 2018, 6:10 a.m.
Right Patch Set: Renamed variable Created Jan. 18, 2018, 12:19 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « DEPS ('k') | third_party/libadblockplus/download_ndk.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 import os
2 import sys
3 import shutil
4
5
6 def main(argv):
7 directory = argv[0]
8 if os.path.exists(directory):
9 shutil.rmtree(directory)
10
11 return 0
12
13
14 if '__main__' == __name__:
15 try:
16 sys.exit(main(sys.argv[1:]))
17 except KeyboardInterrupt:
18 sys.stderr.write('interrupted\n')
19 sys.exit(1)
LEFTRIGHT

Powered by Google App Engine
This is Rietveld