I want to create temporary files in a temporary directory. below is my code for this.
require 'tmpdir' require 'tempfile' Dir.mktmpdir do |dir| Dir.chdir(dir) TemFile.new("f") sleep 20 end
this gives me this exception: Errno :: EACCES: Permission denied - C: / Users / SANJAY ~ 1 / AppData / Local / Temp / d20130724-5600-ka2ame, because ruby ββis trying to delete the temporary directory, which is not empty.plz help me create a temporary file inside the temp directory.
source share