[sylpheed:31400] Re: [Libsylph] How to create files in RC dir tree, if not exists...
Hiroyuki Yamamoto
hiro-y at kcn.ne.jp
Thu Jun 7 12:44:19 JST 2007
Hello,
On Tue, 5 Jun 2007 17:06:38 +0200
Massimiliano Calamelli <mcalamelli at gmail.com> wrote:
> Hi all, i'm going on with my EFL email client, that uses libsylph as
> email/accounts/prefs backend.
> I'm making my app independent from previous sylpheed installation, but
> i've a problem: i don't understand what is the right function sequence
> to call, in order to create non-existant files (for dir tree i'm ok).
> There's a builtin feature in libsylph, or i've to write it?
The most simple way is:
if (!is_file_exist(path))
create_a_file(path);
If you want strict exclusive file creation, you must write it by
yourself.
--
Hiroyuki Yamamoto <hiro-y at kcn.ne.jp>
More information about the Sylpheed
mailing list