Code covered by the BSD License  

Highlights from
Dir with Cell Output and Options

5.0

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

Dir with Cell Output and Options

by Skynet

 

07 Apr 2005 (Updated 10 Jun 2005)

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
10 Oct 2005 Wang Xin

very good

06 Jan 2006 Ranier Gutierrez

It works nice!

08 Dec 2008 Adam Baker

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

Please login to add a comment or rating.
Updates
12 Apr 2005

Fixed quotes formatting error in description.

13 Apr 2005

Updated keywords.

14 Apr 2005

Bug Fix: Removed 'clc' from code.

10 Jun 2005

Added 'or' SORT_BY option.

Tag Activity for this File
Tag Applied By Date/Time
path Skynet 22 Oct 2008 07:45:13
directories Skynet 22 Oct 2008 07:45:13
files Skynet 22 Oct 2008 07:45:13
dir Skynet 22 Oct 2008 07:45:13
directory Skynet 22 Oct 2008 07:45:13
fileparts Skynet 22 Oct 2008 07:45:13
folder Skynet 22 Oct 2008 07:45:13
file Skynet 22 Oct 2008 07:45:13
directory listing Skynet 22 Oct 2008 07:45:13
dir Mike Hofer 18 Mar 2010 06:46:41
directories Mike Hofer 18 Mar 2010 06:46:44

Contact us at files@mathworks.com