Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: editor/build/truncate_files.py

Issue 247103002: Move editor/build/truncate_files.py to tools/create_timestamp_file.py (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « editor/build/generate_sources.py ('k') | tools/create_timestamp_file.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/build/truncate_files.py
===================================================================
--- editor/build/truncate_files.py (revision 35247)
+++ editor/build/truncate_files.py (working copy)
@@ -1,16 +0,0 @@
-# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-# for details. All rights reserved. Use of this source code is governed by a
-# BSD-style license that can be found in the LICENSE file.
-
-import sys
-import os
-
-def main(args):
- for file_name in args[1:]:
- dir_name = os.path.dirname(file_name)
- if not os.path.exists(dir_name):
- os.mkdir(dir_name)
- open(file_name, 'w').close()
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv))
« no previous file with comments | « editor/build/generate_sources.py ('k') | tools/create_timestamp_file.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698