temp/WalletCompanionFiles/WalletCompanionFiles/ServerReference/pass_signing/lib/sign_pass.rb
# Creates a temporary place to work with the pass files without polluting the original
Creates a temporary place to work with the pass files without polluting the original
Creates a temporary place to work with the pass files without polluting the original
def create_temporary_directory
    self.temporary_directory = Dir.mktmpdir
    puts "Creating temp dir at #{self.temporary_directory}"
    self.temporary_path = self.temporary_directory + "/" + self.pass_url.split("/").last
    if File.directory?(self.temporary_path)
      FileUtils.rm_rf(self.temporary_path)
    end
  end
def create_temporary_directory self . temporary_directory = Dir . mktmpdir puts "Creating temp dir at #{self.temporary_directory}" self . temporary_path = self . temporary_directory + "/" + self . pass_url . split ( "/" ) . last if File . directory? ( self . temporary_path ) FileUtils . rm_rf ( self . temporary_path ) end end
Creates a temporary place to work with the pass files without polluting the original
Creates a temporary place to work with the pass files without polluting the original
# Check if the directory exists # Need to clean up the directory