SbFileHelper Class |
Utilities class for file management.
Namespace: OIV.Inventor.Helpers
The SbFileHelper type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | CleanUpPath | Removes all multiple occurences of '/' in the path. |
![]() ![]() | ContainsWindowsDrive | Returns true if the specified path starts with a Microsoft Windows drive letter. |
![]() ![]() | CreateDirectory | Create the specified directory. |
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() | ExpandString | Returns a new version of the string with "$NAME" SoPreference variable names expanded to their defined value. |
![]() ![]() | FileSystemURLToFilename | Converts a file system URL to a regular filename E.g "file:///c:/temp/test.dat" becomes "c:/temp/test.dat". |
![]() ![]() | GetBaseName | Returns the filename part of a full path string. |
![]() ![]() | GetCurrentDirectory | Returns the current directory. |
![]() ![]() | GetDirName | Returns the directory path part of a full path string. |
![]() ![]() | GetExtension | Returns the extension part of the specified filename. |
![]() ![]() | GetFileSize | Returns the size of the specified file in bytes. |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() ![]() | GetTempDirectory | Returns the path to the temporary directory used by the system. |
![]() ![]() | GetTempFilename | Returns a temporary filename. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | IsAccessible(String) | Calls IsAccessible(filename, OIV.Inventor.Helpers.SbFileHelper.FileAccess( .SbFileHelper.READ )). |
![]() ![]() | IsAccessible(String, SbFileHelperFileAccess) | Returns true if a file is accessible |
![]() ![]() | IsFileSystemUrl | Returns true if the filename is a file system URL like: file://... |
![]() ![]() | IsUrl | Returns true if the filename is a network url like: http:// or ftp://. |
![]() ![]() | MakeFileSystemURL | Converts a filename to a file system URL. |
![]() ![]() | RemoveFile | Removes the specified file. |
![]() ![]() | SetCurrentDirectory | Sets the current working directory. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | ToUnixPath | Converts a Microsoft Windows path (with '\') to a Unix path (with '/'). |
![]() ![]() | ToWindowsPath | Converts a Unix path (with '/') to a Microsoft Windows path (with '\'). |
Portable utility functions to manage files and manage file path strings.
File path strings can contain SoPreference (environment) variable names preceded by the '$' (dollar sign) character. These names are expanded to their defined value before passing the string to the operating system. For example, "$OIVHOME/data/models/bird.iv" could be used to access a file installed by the Open Inventor SDK. If the specified name does not have a defined value, the name is used as-is.