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

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

[Octave-bug-tracker] [bug #63524] dir / glob not listing directories in


From: Hans
Subject: [Octave-bug-tracker] [bug #63524] dir / glob not listing directories in some cases !
Date: Wed, 14 Dec 2022 09:30:06 -0500 (EST)

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

                 Summary: dir / glob not listing directories in some cases !
                 Project: GNU Octave
               Submitter: alzi123
               Submitted: Wed 14 Dec 2022 02:30:03 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 7.3.0
         Discussion Lock: Any
        Operating System: Microsoft Windows
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 14 Dec 2022 02:30:03 PM UTC By: Hans <alzi123>
= Found some problem in dir / glob: =

== dir ==

cd('C:\Program Files\GNU Octave\Octave-7.3.0\');
pwd
ans = C:\Program Files\GNU Octave\Octave-7.3.0
dir('*.m')
warning: dir: nonexistent directory '*.m'
warning: called from
    dir at line 193 column 5


cd('D:\Projekte1\');
dir('**\*.m')
script001.m
script002.m
script003.m
...

== glob ==

cd('C:\Program Files\GNU Octave\Octave-7.3.0\');
glob('**\*.m')
ans = {}(0x0)
----------------------------------------------------
cd('D:\Projekte1\');
glob('**\*.m')
ans =
{
  [1,1] = dir1\script001.m
  [2,1] = dir1\script002.m
  [3,1] = dir2\script003.m
...
}


== traced it down to... ==
__wglob__('C:\Program Files\GNU Octave\Octave-7.3.0\**\*.m')
ans = {}(0x0)

__wglob__('D:\Projekte1\**\*.m')
ans =
{
  [1,1] = D:\Projekte1\dir1\script001.m
  [2,1] = D:\Projekte1\dir1\script002.m
  [3,1] = D:\Projekte1\dir2\script003.m
...
}

== Is there a solution to this problem? ==
I also set all directory rights to full access for the directory
C:\Program Files\GNU Octave\Octave-7.3.0\










    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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