From: Carl Graff Date: 2006-10-14T02:55:12+09:00 Subject: Re: Trouble delecting UNC file on window 1.8.4 Carl Graff wrote: Thanks to the bvoth of you for tryin gto resolve this for me. Turns out it was a b0ne0head mistake on my part as usual (how embarrasing). I did not close teh file after creating it as sheown in the little except that follows: reader = CSV.open(locXfrFile, 'r') top_row = reader.shift # skip top row as it just contains column names reader.each {|r| l = ShpLine.new ordno = r[3][0,r[3].length-10] order[ordno] = ShpOrd.new unless order[ordno] attrb_assign(order[ordno], l, "ship_date", r[0]) ... detail << l } reader.close <= I forgot to put this clcse statement in - duh! Carl Graff wrote: > Nobuyoshi Nakada wrote: >> Hi, >> >> At Fri, 13 Oct 2006 16:35:42 +0900, >> Carl Graff wrote in [ruby-talk:219487]: >>> I have a problem delecting a file that has a UNC path. I am using 1.8.4 >>> on windows and this same thing did work in 1.8.2. >> >> I don't think it is related to UNC. >> >> Probably, just my guess, you are not the owner of that, are >> you? >> >> FileUtils since 1.8.3 changes the permission to 0700, whereas >> 0777 before, in order to turn read-only flag off. 0700 means >> it isn't writable other than the onwer. >> >>> - is the C$ just a windows thing? >> >> No, but it is just an ordinary directory. > > Do you think it is becuase you are going between two different boxes and > I am trying to do the delete on the same box that the file was created > and the Ruby program is running? -- Posted via http://www.ruby-forum.com/.