Length
This commit is contained in:
2023-06-28 21:14:11 -07:00
parent dd514b8873
commit a4dd0fae45
19 changed files with 39 additions and 39 deletions

View File

@ -97,7 +97,7 @@ public class CopyDistinct
continue;
(_, directoryIndex) = Shared.Models.Stateless.Methods.IPath.GetDirectoryNameAndIndex(_PropertyConfiguration.ResultAllInOneSubdirectoryLength, fileHolder.NameWithoutExtension);
directoryName = Path.GetFileName(fileHolder.DirectoryName);
if (!fileHolder.Name.StartsWith(directoryName))
if (directoryName.Length < _PropertyConfiguration.ResultAllInOneSubdirectoryLength || !fileHolder.Name.StartsWith(directoryName))
{
if (wrapped)
continue;