@ -81,7 +81,7 @@ module RunState = struct
store ()
store ()
end
end
let results_dir_dir_markers = [ Config . results_dir ^/ Config . specs_dir_name ]
let results_dir_dir_markers = [ get_path Specs ]
let is_results_dir ~ check_correct_version () =
let is_results_dir ~ check_correct_version () =
let not_found = ref " " in
let not_found = ref " " in
@ -109,7 +109,7 @@ let non_empty_directory_exists results_dir =
let remove_results_dir () =
let remove_results_dir () =
if non_empty_directory_exists Config . results_dir then (
if non_empty_directory_exists Config . results_dir then (
if not Config . force_delete_results_dir then
if ( not Config . buck ) && not Config . force_delete_results_dir then
Result . iter_error ( is_results_dir ~ check_correct_version : false () ) ~ f : ( fun err ->
Result . iter_error ( is_results_dir ~ check_correct_version : false () ) ~ f : ( fun err ->
L . ( die UserError )
L . ( die UserError )
" ERROR: '%s' exists but does not seem to be an infer results directory: %s@ \n \
" ERROR: '%s' exists but does not seem to be an infer results directory: %s@ \n \
@ -138,7 +138,7 @@ let create_results_dir () =
) ;
) ;
Unix . mkdir_p Config . results_dir ;
Unix . mkdir_p Config . results_dir ;
Unix . mkdir_p ( get_path Temporary ) ;
Unix . mkdir_p ( get_path Temporary ) ;
List. iter ~ f : Unix . mkdir_p results_dir_dir_markers ;
Unix. mkdir_p ( get_path Specs ) ;
prepare_logging_and_db () ;
prepare_logging_and_db () ;
()
()