Class PathUtils
Inherited Members
Namespace: Acoustics.Shared
Assembly: Acoustics.Shared.dll
Syntax
public static class PathUtils
Methods
| Improve this Doc View SourceGetShortFilename(String)
Gets the short 8.3 filename for a file.
Declaration
public static string GetShortFilename(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | The path to convert. |
Returns
| Type | Description |
|---|---|
| String | An 8.3 filename extracted from kernel32.dll. |
Remarks
If the current platform is not Windows based this function will simply return the given input path without modification. If the supplied path is null or whitespace it will be again returned without modification.
Exceptions
| Type | Condition |
|---|---|
| File |
If the requested file does not exist. |
HasUnicodeOrUnsafeChars(String)
Detects whether the given path has unsafe or unicode characters in it.
Declaration
public static bool HasUnicodeOrUnsafeChars(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | The path string to check. |
Returns
| Type | Description |
|---|---|
| Boolean | Returns |
Remarks
Searches for control characters, characters above 0x7F,
and any characters in Get