bugGNU Octave - Bugs: bug #54692, isdir changed to isfolder but...

 
 

bug #54692: isdir changed to isfolder but mkdir is still mkdir

Submitter:  Michael Godfrey <godfrey>
Submitted:  Wed 19 Sep 2018 02:10:47 PM UTC
   
 
Category:  Interpreter Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Other
Status:  Wont Fix Assigned to:  None
Originator Name:  Godfrey Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 19 Sep 2018 06:39:12 PM UTC, comment #3: 

I would rather remove the function 'isfolder' completely and stick to using terminology dealing with 'dir' and 'directory', but it seems that MathWorks decided to fix a problem with 'isdir' by creating a new function 'isfolder' and deprecating 'isdir' instead of just fixing it in 'isdir' itself. So the new and inconsistently named 'isfolder' is now the preferred function to use.

Mike Miller <mtmiller>
Group Member
Wed 19 Sep 2018 06:01:29 PM UTC, comment #2: 

OK. No bugs, just seemed odd. I would tend to
put consistency above "Matlab consistency"

But, OK to leave as is...

Michael Godfrey <godfrey>
Group Member
Wed 19 Sep 2018 05:40:39 PM UTC, comment #1: 
Mike Miller <mtmiller>
Group Member
Wed 19 Sep 2018 02:10:47 PM UTC, original submission:  

Obviously, for consistency mkdir should allow mkfolder and also
prefdir, rmdir, readdir, dir_in_loadpath, dir should allow
folder version

But, should S_ISDIR also allow S_ISFOLDER?

Of course, checking with Matlab will be
useful.

Michael Godfrey <godfrey>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by godfrey (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 group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-19 mtmiller StatusNeed Info Wont Fix
        Open/ClosedOpen Closed
    2018-09-19 mtmiller Carbon-CopyRemoved 80942 -
    2018-09-19 mtmiller StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code