There was an error while loading. Please reload this page.
1 parent a787331 commit fe19c59Copy full SHA for fe19c59
JavaExtractor/extract.py
@@ -92,5 +92,9 @@ def ExtractFeaturesForDirsList(args, dirs):
92
os.system(command)
93
elif args.dir is not None:
94
subdirs = get_immediate_subdirectories(args.dir)
95
- ExtractFeaturesForDirsList(args, subdirs)
96
-
+ to_extract = subdirs
+ if len(subdirs) == 0:
97
+ to_extract = [sys.argv[2]]
98
+ ExtractFeaturesForDirsList(args, to_extract)
99
+
100
0 commit comments