[Gambas-user] Acting on a file in the local folder of a Gambas project
Ru Vuott
vuott at ...325...
Sat Jan 5 23:45:39 CET 2013
Hello,
I don't understand...
I have a file in local folder of my Gambas project, if my Gambas code is:
Copy "myFile" To User.Home &/ "myFile"
it's possible copy the file;
But if the code is:
Move "myFile" To User.Home &/ "myFile"
it isn't possible to move the file.
Infact an error returns: "Access forbidden".
But, with "Move" if that code is:
Move Application.Path &/ "myFile" to User.Home &/ "myFile"
it' s OK. No errors.
''''''
So if the code is:
Print Stat("myFile").Auth
the permissions are: r--------
but if the code is:
Print Stat(Application.Path &/ "myFile").Auth
the console shows these permissions: rw-rw-r--
''''''
And more.
File.Save("myFile", "this is my file")
it isn't possible to save the file: "Access forbidden".
BUT:
string = File.Load("myFile")
this is possible !!!
And:
File.Save(Application.Path &/ "myFile", "this is my file")
this is possible.
'''
I don't understand why those different results (IF the "path" of file is made plain and IF not).
Regards
vuott
More information about the User
mailing list