QT: Defaultfolder & files

Eric Chatonet eric.chatonet at sosmartsoftware.com
Wed Aug 27 06:48:02 EDT 2008


Bonjour William,

When you write: 'if there is a folder "Backup"', Rev looks at a  
'Backup' folder in the current default folder because you specify a  
name only.
Try to use a complete path name for the backup folder and it will  
work :-)
I assume you can deduce it from your main stack location.

Le 27 août 08 à 12:43, William de Smet a écrit :

> Hi there,
>
> A quick question about Defaultfolder & files.
> I create a folder "Backup" and set the defaultfolder to it and then
> save the .txt file.
> But now everytime there is a new folder created in which the new .txt
> file is saved.
>
> Of course I want the Backup folder to be created only once  so I want
> to check if it exists on mouseup:
> if there is a folder "Backup" then set defaultfolder to it
> else create folder "Backup"
>
> The 'problem' still exists.
> What am I doing wrong?
>
> Greetings,
>
> William

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list