pwd

Path to currently active folder on target computer

Description

example

active_folder = pwd(filesys_object) returns the path to the currently active folder on the target computer. Unless cd(filesys_object, folder_name) has been called, the currently active folder is the top folder of the boot drive, usually C:\.

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.

Examples

collapse all

Return the currently active folder for the target computer file system.

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

  1×3 char array

C:\

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

Output Arguments

collapse all

The path to the currently active folder on the target computer.

Introduced in R2014a