From e7d93f6d8031f35ea5ea78bb8d4ba37c10fba0a2 Mon Sep 17 00:00:00 2001 From: Sean Date: Sat, 15 Jun 2019 20:36:16 -0700 Subject: [PATCH] Destination works, origin still WIP --- file_nav.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/file_nav.rb b/file_nav.rb index 0ce5190..7cadc75 100644 --- a/file_nav.rb +++ b/file_nav.rb @@ -20,10 +20,10 @@ class DirTermine def destination_dir puts 'Please enter desired save directory (Leave blank for ~/Pictures/stickerized)' dir = gets.chomp - dir = default_dir unless File.directory?(File.expand_path(dir)) + dir = default_dir if dir.empty? || dir.nil? create_dir(dir) - puts File.expand_path(dir) + " IS DESTINATION" - return File.expand_path(dir) + puts dir + " IS DESTINATION" + File.expand_path(dir) end def origin_dir @@ -31,7 +31,7 @@ class DirTermine dir = gets.chomp dir = Dir.getwd if dir.empty? puts File.expand_path(dir) + " IS ORIGIN" - File.expand_path(dir) + dir end end