[Vala] file.copy problem



oops, sorry , I  forgot part of the error line...

Hi,

I have got this problem on file.copy function using valide 4.0 on windows.

this is the code :
. . . .
test.copy (destBkup, FileCopyFlags.OVERWRITE, null, null); // create backup
. . . .

When I launch the program I got this warning :

Progetti_VALA/PetBeGone/main.vala.c: line 622: uncaught error: Error opening file. 'F:/Progetti_VALA\packages\TESTLIST_BAK': File exists

this error stop the execution. I mean the lines below the test.copy are not executed.

I think this shouldn't be because I set FileCopyFlags.OVERWRITE. Am I wrong ?




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]