[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57664] dir() function folder element is empty
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #57664] dir() function folder element is empty for Windows UNC network-based files |
Date: |
Tue, 28 Jan 2020 04:15:37 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0 |
Follow-up Comment #6, bug #57664 (project octave):
I'm seeing pretty much the same as what Markus describes. Also,
ls('\\SRVR\engineering\path\to\file')
works too, but in that case Octave is using a system call to "dir
\\SRVR\engineering\path\to\file" (not the Octave dir() routine).
My guess would be that canonicalize_file_name() sort of originated as a Unix
routine, then along the way gnulib extended it to Windows. There doesn't seem
to be a lot out there on canonicalize_file_name() and UNC paths. Instead, in
the Windows world realpath() is mentioned more often.
It would be nice if gnulib already handled UNC. We could cobble something
together using "dir" system command, but it feels like the best approach is to
use some of the low level Windows routines. In any case, processing of file
paths generally in Octave could utilize the same "pre-process" code.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57664>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57664] dir() function folder element is empty for Windows UNC network-based files, Dan Sebald, 2020/01/25
- [Octave-bug-tracker] [bug #57664] dir() function folder element is empty for Windows UNC network-based files, Philip Nienhuis, 2020/01/25
- [Octave-bug-tracker] [bug #57664] dir() function folder element is empty for Windows UNC network-based files, Rik, 2020/01/26
- [Octave-bug-tracker] [bug #57664] dir() function folder element is empty for Windows UNC network-based files, Markus Mützel, 2020/01/27
- [Octave-bug-tracker] [bug #57664] dir() function folder element is empty for Windows UNC network-based files, Rik, 2020/01/27
- [Octave-bug-tracker] [bug #57664] dir() function folder element is empty for Windows UNC network-based files, John W. Eaton, 2020/01/27
- [Octave-bug-tracker] [bug #57664] dir() function folder element is empty for Windows UNC network-based files,
Dan Sebald <=
- [Octave-bug-tracker] [bug #57664] dir() function folder element is empty for Windows UNC network-based files, Mike Miller, 2020/01/31
- [Octave-bug-tracker] [bug #57664] dir() function folder element is empty for Windows UNC network-based files, Dan Sebald, 2020/01/31