bin/rmega-dl in rmega-0.3.1 vs bin/rmega-dl in rmega-0.3.2
- old
+ new
@@ -44,10 +44,10 @@
if mega_url?(cli_options[:url])
# a valid MEGA urls
urls = [cli_options[:url]]
else
# A text file with a list of MEGA urls (considering only files < 1 Mb)
- if File.exists?(cli_options[:url])
+ if File.exist?(cli_options[:url])
if File.size(cli_options[:url]) < 1_000_000
File.open(cli_options[:url], "rb") do |file|
file.each_line do |line|
line.strip!
urls << line if mega_url?(line)