'fullPath' value truncated after 'lastDirectory'
truncatePathAfterDirectory(`c:\\one\\two\\three\\test.json`, 'two') Copy
truncatePathAfterDirectory(`c:\\one\\two\\three\\test.json`, 'two')
returns c:\\one\\two
c:\\one\\two
An error occurs and processing stops if 'fullPath' doesn't include the 'lastDirectory' folder.
Example
returns
c:\\one\\twoRemarks
An error occurs and processing stops if 'fullPath' doesn't include the 'lastDirectory' folder.