Article Details
| Id: | 22267 | 
| Product: | finPOWER Connect | 
| Type: | NEW | 
| Version: | 6.00.00 | 
| Opened: | 10/10/2024 | 
| Closed: | 10/10/2024 | 
| Released: | 17/04/2025 | 
| Job: | J034469 | 
Business Layer; GetFolderParent function has been added to ISFileUtilities
The following function is now available in ISFileUtilities:
Public Function GetFolderParent(folder As String, includeDirectorySeparator As Boolean, ByRef parentFolder As String) As Boolean
This will return the parent folder, for a specified folder.
For example: Passing "C:\Folder1\Folder2" into the function will return "C:\Folder1".
Note: This on-calls the built-in .NET method Directory.GetParent; more information is available here: https://learn.microsoft.com/en-us/dotnet/api/system.io.directory.getparent?view=net-8.0.