module Dependabot::Workspace

def self.setup(repo_contents_path:, directory:)

def self.setup(repo_contents_path:, directory:)
  Dependabot.logger.debug("Setting up workspace in #{repo_contents_path}")
  full_path = Pathname.new(File.join(repo_contents_path, directory)).expand_path
  # Handle missing directories by creating an empty one and relying on the
  # file fetcher to raise a DependencyFileNotFound error
  FileUtils.mkdir_p(full_path)
  @active_workspace = Dependabot::Workspace::Git.new(full_path)
end