Page 1 of 1

Regular Expression Multiple File Extension Error

Posted: 14 May 2022, 11:55
by Naren
I have written regular expression in the 'Exclude files Filter' as given in the example to exclude file extension other than jpg, jpeg and png
Regular Expression: ^.*\.(?!mp4$|jpeg$|png$)[^.]+$
Regular Expression: ^.*\.(?!txt$)[^.]+$ (It is working properly)

When I am running the task i am getting the below error:

Code: Select all

ERR 2022-05-14 14:42:49 An unexpected error occurred: Illegal characters: [|] in path.
Parameter name: path
ERR 2022-05-14 14:42:49 Source: AlphaFS  Details:    at Alphaleonis.Win32.Filesystem.Path.CheckInvalidPathChars(String path, Boolean checkAdditional, Boolean allowEmpty)
   at Alphaleonis.Win32.Filesystem.Path.ApplyFullPathOptions(String path, GetFullPathOptions options)
   at Alphaleonis.Win32.Filesystem.Path.GetRegularPathCore(String path, GetFullPathOptions options, Boolean allowEmpty)
   at Alphaleonis.Win32.Filesystem.Path.GetPathRoot(String path, Boolean checkInvalidPathChars)
   at Cobian.Reflector.Engine.VSCClient.GetFileOrDirectoryCopy(String fd)
   at Cobian.Reflector.Engine.CopyComponent.checkVSC()
   at Cobian.Reflector.Engine.CopyComponent.backupAction()
   at Cobian.Reflector.Engine.BackupComponent.Backup()
   at Cobian.Reflector.Engine.TaskBackupExecutor.startBackup(BackupTask subTask, String backupId, DateTime backupTime, Boolean lastDestination)
   at Cobian.Reflector.Engine.TaskBackupExecutor.Process()

Re: Regular Expression Multiple File Extension Error

Posted: 16 May 2022, 09:44
by cobian
Interesting... cannot reproduce this one. Could you please copy/task your task here os zip and sens your list?

Re: Regular Expression Multiple File Extension Error

Posted: 16 May 2022, 12:09
by Naren
I am getting this error all the times in different machines. I have attached the settings, filter, Logs and properties file. I am not getting what you are asking me to send.

Code: Select all

    2022-05-16 14:36:47 Welcome to Cobian Reflector!
    2022-05-16 14:36:47 Program version: 1.0.0
     
    2022-05-16 14:36:47 Loading the task list "C:\Program Files\Cobian Reflector\Lists\MainList.lst".
    2022-05-16 15:08:37 The list "MainList.lst" has been successfully saved.
    2022-05-16 15:08:48 Backing up some selected tasks.
     
    2022-05-16 15:08:49 A backup has started...
    2022-05-16 15:08:50 Calculating the number of files. This could take a while...
     
    2022-05-16 15:08:50 Backing up the task "Backup"
    2022-05-16 15:08:50 Applying the parameters to the task "Backup" (if any).
    2022-05-16 15:08:50 Requesting the creation of a Volume Shadow Copy image for the source...
    2022-05-16 15:09:10 The Volume Shadow Copy image has been successfully created.
    2022-05-16 15:09:10 Starting the copy. The user running the task is: Sansar
    2022-05-16 15:09:10 The destination directory "D:\rkd-copy\Images" has been successfully created.
ERR 2022-05-16 15:09:10 An unexpected error occurred: Illegal characters: [|] in path.
Parameter name: path
ERR 2022-05-16 15:09:10 Source: AlphaFS  Details:    at Alphaleonis.Win32.Filesystem.Path.CheckInvalidPathChars(String path, Boolean checkAdditional, Boolean allowEmpty)
   at Alphaleonis.Win32.Filesystem.Path.ApplyFullPathOptions(String path, GetFullPathOptions options)
   at Alphaleonis.Win32.Filesystem.Path.GetRegularPathCore(String path, GetFullPathOptions options, Boolean allowEmpty)
   at Alphaleonis.Win32.Filesystem.Path.GetPathRoot(String path, Boolean checkInvalidPathChars)
   at Cobian.Reflector.Engine.VSCClient.GetFileOrDirectoryCopy(String fd)
   at Cobian.Reflector.Engine.CopyComponent.checkVSC()
   at Cobian.Reflector.Engine.CopyComponent.backupAction()
   at Cobian.Reflector.Engine.BackupComponent.Backup()
   at Cobian.Reflector.Engine.TaskBackupExecutor.startBackup(BackupTask subTask, String backupId, DateTime backupTime, Boolean lastDestination)
   at Cobian.Reflector.Engine.TaskBackupExecutor.Process()
     
    2022-05-16 15:09:10 ** Backup for the task "Backup" has ended **
    2022-05-16 15:09:10 ** Processed files: 0. Backed up files: 0. Created folders: 0. Backup size: 0 bytes. **
    2022-05-16 15:09:10 ** Number of errors: 2. Time elapsed: 0 hours, 0 minutes, 20 seconds. **
     
    2022-05-16 15:09:10 Deleting the Volume Shadow Copy image...
    2022-05-16 15:09:10 The Volume Shadow Copy image has been successfully deleted.
     
    2022-05-16 15:09:10 The backup has ended. There are errors. Consult the log file.
     

Re: Regular Expression Multiple File Extension Error

Posted: 18 May 2022, 15:20
by cobian
Thank you! Will make some tests

Re: Regular Expression Multiple File Extension Error

Posted: 03 Aug 2022, 12:40
by Naren
Any update on this?

Re: Regular Expression Multiple File Extension Error

Posted: 04 Aug 2022, 16:28
by cobian
I think the problem is in the | so I would split this expression into three to avoid this character.