ZosUnixFolders
The ZosUnixFolders object is a collection of all Unix folders for the same server. This object is obtained using the UnixFolders property of the ZosServer object.
ZosUnixFolders Properties
ZosUnixFolders exposes the following properties:
Property | Type | R/W | Description |
---|---|---|---|
[index] [name] | ZosUnixFolder | R | Folder with specified name or index. |
Count | Int32 | R | Number of objects in collection. |
Path | String | R | File system path name for collection. |
...
ZosUnixFolders Methods
ZosUnixFolders exposes the following methods:
Add Method
Overrides
Add(String, String)
Adds a new folder. Target path is Unix path name. Returns index at which object has been added.
Int32 Add(
String folderName,
String targetPath
)
...
Add(String, ZosUnixDirectory)
Adds a new folder. Returns index at which object has been added.
Int32 Add(
String folderName,
ZosUnixDirectory targetDirectory
)
...
Find Method
Searches for folder with specified name and returns reference to object. Returns null if name is not found.
ZosUnixFolder Find(
String name
)
FindIndex Method
Searches for folder with specified name and returns zero-based index. Returns -1 if name is not found.
Int32 FindIndex(
String name
)
Refresh Method
Refreshes collection.
void Refresh()
Remove Method
Deletes a folder. Returns true if folder was removed or false if folder is not found.
Boolean Remove(
String folderName
)
...