Displaying 1 result from an estimated 1 matches for "converted_file".
2011 Jul 11
0
stuck with permissions in using FileUtils
...mp_file = File.join(@tmp_dir, "#{basename}.mp4")    #  =>
( "../clips/tmp/65/NickFaldo.mp4" )
until then everything works as expected ...
then I want to bring back the transcoded clip in place of the original
one ... with the same base name but with an .mp4 extension
      @converted_file = File.join(File.dirname(@clip_file),
"#{basename}.mp4" )  #   =>  ( ".. rails/myapp/public/system/clips/
data/65/original/NickFaldo.mp4" )
so I wrote :
            FileUtils.rm @clip_file  # remove clip_file    # to remove
the previous original
            FileUtils.chmod(0...