rally-workspace-attachment-exporter.rb
# Use existing directory if it already exists
Use existing directory if it already exists
Use existing directory if it already exists
def create_export_dir (dir_name, state)
	if Dir.exists?(dir_name) && state == DIR_CAN_BE_OLD
		puts "ERROR-01: Directory already exists: #{dir_name}\n"
		exit
	end
	if Dir.exists?(dir_name)
		return
	else
		Dir.mkdir (dir_name)
		if ! Dir.exists?(dir_name)
			puts "ERROR-02: Could not create directory: #{dir_name}\n"
			exit
		end
	end
end
def create_export_dir ( dir_name , state ) if Dir . exists? ( dir_name ) && state == DIR_CAN_BE_OLD puts "ERROR-01: Directory already exists: #{dir_name}\n" exit end if Dir . exists? ( dir_name ) return else Dir . mkdir ( dir_name ) if ! Dir . exists? ( dir_name ) puts "ERROR-02: Could not create directory: #{dir_name}\n" exit end end end
Use existing directory if it already exists
Use existing directory if it already exists
dir_name
state