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

Unified Diff: mojo/public/tools/ls.py

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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 | « mojo/public/tools/gn/zip.py ('k') | mojo/public/tools/prepend.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/ls.py
diff --git a/mojo/public/tools/ls.py b/mojo/public/tools/ls.py
deleted file mode 100755
index 638c3bdeb77d836b9a97df114850f9f00e8c8bc6..0000000000000000000000000000000000000000
--- a/mojo/public/tools/ls.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/python
-# Copyright 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Recursively list files of the target directory. Ignores dot files."""
-
-import argparse
-import os
-import sys
-
-def main(target_directory):
- for root, dirs, files in os.walk(target_directory):
- files = [f for f in files if not f[0] == '.']
- dirs[:] = [d for d in dirs if not d[0] == '.']
- for f in files:
- path = os.path.join(root, f)
- print path
-
-if __name__ == '__main__':
- parser = argparse.ArgumentParser(
- description="Recursively list files of the target directory")
- parser.add_argument("--target-directory",
- dest="target_directory",
- metavar="<target-directory>",
- type=str,
- required=True,
- help="The target directory")
-
- args = parser.parse_args()
- sys.exit(main(args.target_directory))
« no previous file with comments | « mojo/public/tools/gn/zip.py ('k') | mojo/public/tools/prepend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698