Remove empty folder from target computer



rmdir(filesys_object,folder_name) removes an empty folder from the target computer file system. If the folder contains a file or folder, the function prints an error message.

You cannot recover this folder once you remove it.

Note: The SimulinkRealTime.fileSystem object will be removed in a future release. See the release note for file system commands to use instead. These commands use the SimulinkRealTime.openFTP function and the functions for the MATLAB ftp object.


collapse all

Remove the folder data2.dat from the target computer file system.

tg = slrt;
filesys_object = SimulinkRealTime.fileSystem(tg);

Input Arguments

collapse all

File system object created by using the SimulinkRealTime.fileSystem creation function.

The file system object represents the target computer file system. You work with the target computer file system from the development computer by using file system methods.

Example: fsys

Data Types: struct

If you omit the drive letter, the command assumes that the folder path is relative to the default drive.

A fully qualified folder name can have a maximum of 248 characters, including the drive letter, colon, and backslash.

Example: logs

Data Types: char

Introduced in R2014a