[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #32158] Error of deleting a file file path whi

From: Tatsuro MATSUOKA
Subject: [Octave-bug-tracker] [bug #32158] Error of deleting a file file path which begins with '\' on MinGW
Date: Mon, 17 Jan 2011 21:58:22 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10

Follow-up Comment #1, bug #32158 (project octave):

>Why are temporary file names like 'octave-help-xxxxxx' being generated?

I do not find out the reason.

>Are those valid filenames on Windows systems?
Yes it is.

Below the pacth
      for i = 1:length (files)
        file = files{i};
        [err, msg] = unlink (file);
        if (err)
          warning ("delete: %s: %s", file, msg);

'unlink' cannot detele 'octave-help-xxxx' but can delete 'C:octave-help-xxxx'
so that I added current drive name like 'C:'. 

>What is the value of P_tmpdir in your version of Octave
debug> P_tmpdir
ans = 

My windows setting for environmental variable tmp is
octave:2> getenv('tmp')
ans = C:DOCUME~1TatsuLOCALS~1Temp

If unlink can delete a file patch name of which begins from '', this patch is
not required.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]