Main Content

File Operations

Find, view, and change files and folders

Use file operation functions to get information about files, manage files and folders, and open specified files. For more information, see Manage Files and Folders.


expand all

dirList folder contents
lsList folder contents
pwdIdentify current folder
fileattribSet or get attributes of file or folder
existCheck existence of variable, script, function, folder, or class
isfileDetermine if input is file
isfolderDetermine if input is folder
typeDisplay contents of file
visdiffCompare two files or folders
whatList MATLAB files in folder
whichLocate functions and files
filebrowserOpen Current Folder browser
cdChange current folder
copyfileCopy file or folder
deleteDelete files or objects
recycleSet option to move deleted files to recycle folder
mkdirMake new folder
movefileMove or rename file or folder
rmdirRemove folder
openOpen file in appropriate application
winopenOpen file in appropriate application (Windows)