Destination works, origin still WIP

This commit is contained in:
Sean 2019-06-15 20:36:16 -07:00
parent 3c31410afe
commit e7d93f6d80

View file

@ -20,10 +20,10 @@ class DirTermine
def destination_dir def destination_dir
puts 'Please enter desired save directory (Leave blank for ~/Pictures/stickerized)' puts 'Please enter desired save directory (Leave blank for ~/Pictures/stickerized)'
dir = gets.chomp dir = gets.chomp
dir = default_dir unless File.directory?(File.expand_path(dir)) dir = default_dir if dir.empty? || dir.nil?
create_dir(dir) create_dir(dir)
puts File.expand_path(dir) + " IS DESTINATION" puts dir + " IS DESTINATION"
return File.expand_path(dir) File.expand_path(dir)
end end
def origin_dir def origin_dir
@ -31,7 +31,7 @@ class DirTermine
dir = gets.chomp dir = gets.chomp
dir = Dir.getwd if dir.empty? dir = Dir.getwd if dir.empty?
puts File.expand_path(dir) + " IS ORIGIN" puts File.expand_path(dir) + " IS ORIGIN"
File.expand_path(dir) dir
end end
end end