patchGNU Octave - Patches: patch #10301, DIR - a suggestion for an...

 
 

patch #10301: DIR - a suggestion for an enhancement including recursion

Submitter:  Steve <alzi123>
Submitted:  Fri 16 Dec 2022 08:55:55 PM UTC
   
 
Category:  Core : new feature Priority:  5 - Normal
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 21 May 2023 10:31:43 AM UTC, comment #3: 

Closing this report since discussion was moved to bug #63524.

Markus Mützel <mmuetzel>
Group administrator
Sat 17 Dec 2022 03:13:56 PM UTC, comment #2: 

All further updates can be found in bug #63524

Steve <alzi123>
Fri 16 Dec 2022 09:07:07 PM UTC, comment #1: 

as the patch tracker submission text says, the patch tracker is mainly used for proposed patches that don't already have bug reports. Patches to fix bugs are better located on those reports so to make tracking easier.

Nicholas Jankowski <nrjank>
Group Member
Fri 16 Dec 2022 08:55:55 PM UTC, original submission:  

In the attached file you will find a suggestion for an enhancement for the dir.m source code.

It is including recursive '**' behaviour and displays the filenames in a actual way - if no return value is given.

Tried also to speed things up, by using a alternative datenum calculation.

examples



a=dir('C:\'); a
a=dir('C:\*.sys'); a
a=dir('C:\*file*.sys'); a



a=dir('C:\Windows\System32\**\*.dll'); a
ans => about 5000 files



tic; dir('C:\Windows\System32\**\*.dll'); toc
Elapsed time is 2.81726 seconds


discussion:
- please test on linux system

Steve <alzi123>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #54122:  dir.m added by alzi123 (8KiB - application/octet-stream - additional testing, enhanced code)
file #54113:  dir.m added by alzi123 (7KiB - text/plain)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by nrjank (Posted a comment)
  • -email is unavailable- added by alzi123 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-05-21 mmuetzel StatusNone Duplicate
        Open/ClosedOpen Closed
    2022-12-17 alzi123 Attached File- Added dir.m, #54122
    2022-12-16 nrjank CategoryNone Core : new feature
        Dependencies- Depends on bugs #63524
    2022-12-16 alzi123 Attached File- Added dir.m, #54113

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code