class MovieMasher::UploadService

base class for uploader service

Public Instance Methods

directory_files(file) click to toggle source
# File lib/service.rb, line 88
def directory_files(file)
  uploading_directory = File.directory?(file)
  files = []
  if uploading_directory
    file = Path.add_slash_end file
    Dir.entries(file).each do |f|
      f = file + f
      files << f unless File.directory?(f)
    end
  else
    files << file
  end
  files
end
upload(*) click to toggle source
# File lib/service.rb, line 102
def upload(*)
end