Index: tools/bisect_utils.py |
diff --git a/tools/bisect_utils.py b/tools/bisect_utils.py |
index bdb1675be224255215e33fb39e49bd53289850cb..e9867dc3b35c09b5e327831ba8aeef5bd4de8634 100644 |
--- a/tools/bisect_utils.py |
+++ b/tools/bisect_utils.py |
@@ -426,6 +426,19 @@ def SetupPlatformBuildEnvironment(opts): |
return True |
+def CheckIfBisectDepotExists(opts): |
+ """Checks if the bisect directory already exists. |
+ |
+ Args: |
+ opts: The options parsed from the command line through parse_args(). |
+ |
+ Returns: |
+ Returns True if it exists. |
+ """ |
+ path_to_dir = os.path.join(opts.working_directory, 'bisect', 'src') |
+ return os.path.exists(path_to_dir) |
+ |
+ |
def CreateBisectDirectoryAndSetupDepot(opts, custom_deps): |
"""Sets up a subdirectory 'bisect' and then retrieves a copy of the depot |
there using gclient. |