mirror of https://github.com/tc39/test262.git
Skip hidden files in generator.py (#2183)
This commit is contained in:
parent
35dc11f569
commit
a8d4eefa85
|
@ -30,7 +30,13 @@ def find_cases(location):
|
||||||
return None, [location]
|
return None, [location]
|
||||||
else:
|
else:
|
||||||
return None, map(
|
return None, map(
|
||||||
lambda x: os.path.join(args.cases, x), os.listdir(args.cases))
|
lambda x: os.path.join(args.cases, x),
|
||||||
|
filter(
|
||||||
|
# skip hidden files on Unix, such as ".DS_Store" on Mac
|
||||||
|
lambda x: not x.startswith('.'),
|
||||||
|
os.listdir(args.cases)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
def clean(args):
|
def clean(args):
|
||||||
for (subdir, _, fileNames) in os.walk(args.directory):
|
for (subdir, _, fileNames) in os.walk(args.directory):
|
||||||
|
|
Loading…
Reference in New Issue