Sha256: 9775a4924cc67992f1a59f418be836d66b5f9cfc23c0c4cf4382f1d0bca92ddd
Contents?: true
Size: 1.98 KB
Versions: 4
Compression:
Stored size: 1.98 KB
Contents
ȏKQc @ sO d Z d d l Z d d l Z d Z e j d Z d Z d e d Z d S( s6 Shared utility functions for scanning directory trees.iNs nnaze@google.com (Nathan Naze)s ^.+\.js$c C s t | d t S( s Scans a directory tree for JavaScript files. Args: root: str, Path to a root directory. Returns: An iterable of paths to JS files, relative to cwd. t path_filter( t ScanTreet _JS_FILE_REGEX( t root( ( sS /Users/alexmahan/git/google-earth-day/closure/library/closure/bin/build/treescan.pyt ScanTreeForJsFiles s c c s d } x t j | d | D] \ } } } x3 | D]+ } | r5 | j d r5 | j | q5 q5 Wxk | D]c } | r | j d r qk n t j j | | } | r | j | r qk n t j j | Vqk Wq Wd S( sz Scans a directory tree for files. Args: root: str, Path to a root directory. path_filter: A regular expression filter. If set, only paths matching the path_filter are returned. ignore_hidden: If True, do not follow or return hidden directories or files (those starting with a '.' character). Yields: A string path to files, relative to cwd. c S s | d S( N( ( t os_error( ( sS /Users/alexmahan/git/google-earth-day/closure/library/closure/bin/build/treescan.pyt OnError9 s t onerrort .N( t ost walkt startswitht removet patht joint matcht normpath( R R t ignore_hiddenR t dirpatht dirnamest filenamest dirnamet filenamet fullpath( ( sS /Users/alexmahan/git/google-earth-day/closure/library/closure/bin/build/treescan.pyR + s % ( t __doc__R t ret __author__t compileR R t Nonet TrueR ( ( ( sS /Users/alexmahan/git/google-earth-day/closure/library/closure/bin/build/treescan.pyt <module> s
Version data entries
4 entries across 4 versions & 1 rubygems