Class: HydraHls::HlsOutputFileService

Inherits:
CurationConcerns::PersistDerivatives
  • Object
show all
Defined in:
app/services/hydra_hls/hls_output_file_service.rb

Class Method Summary collapse

Class Method Details

.call(directives, temp_dir) ⇒ Object



4
5
6
7
8
# File 'app/services/hydra_hls/hls_output_file_service.rb', line 4

def self.call( directives,temp_dir)
  hls_dir =  directives[:path]
  FileUtils.mkdir_p(hls_dir)
  FileUtils.move(Dir.glob(temp_dir+"/*") , hls_dir)
end