Code covered by the BSD License  

Highlights from
Dir with Cell Output and Options

5.0

5.0 | 3 ratings Rate this file 7 Downloads (last 30 days) File Size: 3.56 KB File ID: #7390

Dir with Cell Output and Options

by

 

07 Apr 2005 (Updated )

Directory listing with cell output and optional filter, sort, and group arguments.

| Watch this File

File Information
Description

DIRC(DIR_NAME) uses the DIR function to return the directory listing of directory DIR_NAME, with usage of optional arguments, and with the following differences in output:

- The output is in a 'cell' format instead of a 'structure' format.
- The output includes the following columns (in the stated order): Full Item Name, Item Name, Item Extension, Date, Bytes, IsDir

Filter, Sort_By, and Group arguments can optionally be used.

Examples:

dirc('C:\')
dirc('C:\Windows','de','n')
dirc('C:\','','t','d')

See code or type 'help dirc' for usage details.

[Please subscribe to this file if you use it, so you can be notified of updates.]

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
08 Dec 2008 Adam Baker

Excellent function. I was so frustrated with dir returning unsorted results but this works perfectly

06 Jan 2006 Ranier Gutierrez

It works nice!

10 Oct 2005 Wang Xin

very good

Updates
12 Apr 2005

Fixed quotes formatting error in description.

13 Apr 2005

Updated keywords.

14 Apr 2005

Bug Fix: Removed 'clc' from code.

Contact us