On Saturday 23 February 2002 06:03 pm, Max Weninger wrote:
> Hi,
>
> Just tried to find out why this happens.
> texedit discards any file permissions e.g. exec and creates always a
> file with 644. Which is bad if you edit a shell script. But I did not
> found any way to set the permissions explicitly. Did I miss something?
Fixed next build.. err.. uhh... I mean fixed next commit...
I'll check and set them explicitly in textedit.
>
> I looked at FileManager::saveFile where the following is used
>
> ...
> QFile fl( fn );
>
> if ( !fl.open( IO_WriteOnly|IO_Raw ) ) {
> ...
>
> How can I get the permissions of an existing file?
> Is there no support in qt and must I use libc?
Probably so. You can check the permissions with QFileInfo. But it seems there
is no way to set them using Qt..
> Regards
>
> Max
Received on Sat Feb 23 17:44:12 2002
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:50:02 EDT