Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
Public Member Functions | List of all members
FileManager Class Reference

FileManager holds and manipulates the file manager process on routers and switches. More...

Inheritance diagram for FileManager:
Process

Public Member Functions

FileSystem getFileSystem (string)
 Returns the file system with the specified name. More...
 
File getFile (string, bool)
 Returns the File given the path and check permission. More...
 
Directory getDirectory (string, bool)
 Returns the Directory given the path and check permission. More...
 
- Public Member Functions inherited from Process
Device getOwnerDevice ()
 Returns the device for this process. More...
 

Detailed Description

FileManager holds and manipulates the file manager process on routers and switches.

Member Function Documentation

◆ getDirectory()

Directory FileManager::getDirectory ( string  ,
bool   
)

Returns the Directory given the path and check permission.

Parameters
absPath,theabsolute path to directory.
bCheckPermission,trueif check permission of directory, false otherwise.
Returns
Directory, the directory of given path.

◆ getFile()

File FileManager::getFile ( string  ,
bool   
)

Returns the File given the path and check permission.

Parameters
absPath,theabsolute path to File.
bCheckPermission,trueif check permission of file, false otherwise.
Returns
File, the File of given path.

◆ getFileSystem()

FileSystem FileManager::getFileSystem ( string  )

Returns the file system with the specified name.

Parameters
name,thename of the file system. File systems: flash:, nvram:
Returns
FileSystem, the FileSystem object with the specified name.

The documentation for this class was generated from the following file: