octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #62414] movefile for relative paths doesn't wo


From: anonymous
Subject: [Octave-bug-tracker] [bug #62414] movefile for relative paths doesn't work on Windows anymore.
Date: Wed, 4 May 2022 14:01:33 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62414>

                 Summary: movefile for relative paths doesn't work on Windows
anymore.
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 04 May 2022 06:01:31 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: Mario Kleiner
        Originator Email: 
             Open/Closed: Open
                 Release: 7.1.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Statements like this:

movefile('..\relative\path\to\file', targetpath);

worked since at least October 2015 and Octave 4.

Since Octave 7.1, movefile would report a file not found error.
The culprit seem to be the '..\' part defining the relative path.

This is probably related to the changes in use of __wglob__() instead of
glob() inside movefile() and changes to __wglob__() implementation for Windows
in Octave 7.

glob('..\relative\path\to\file') still returns correct results,
but
__glob__('..\relative\path\to\file')
now returns [] empty instead of the correct path.






    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62414>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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