Project

General

Profile

Actions

Bug #87

open

ParseFolderName: if filename part of path then not returning correct path

Added by Wil van Antwerpen over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Start date:
09/05/2017
Due date:
% Done:

0%

Estimated time:

Description

From: Clayton

I found a possible bug using ParseFolderName function.

If the contents of sFile is part of the direcories names in sFileName, the replace function change the first ocurrence of the substring.

To fix this a replaced the line:
Move (Replace(sFile,sFileName,"")) To sFolderName
With:
Move (Left(sFileName,Length(sFileName)-Length(sFile))) to sFolderName

Hope I made myself clear.

Thanks in advance.

Have a nice day.

Actions

Also available in: Atom PDF