Re: xfer options
- From: Marko Anastasov <marko marko anastasov name>
- To: Alexander Larsson <alexl redhat com>
- Cc: gnome-vfs-list gnome org
- Subject: Re: xfer options
- Date: Mon, 14 Aug 2006 23:24:36 +0200
On Mon, 2006-08-14 at 09:26 +0200, Alexander Larsson wrote:
> On Mon, 2006-08-14 at 04:18 +0200, Marko Anastasov wrote:
> > Hello,
> >
> > If I haven't overlooked some values in the GnomeVFSXferOptions enum
> > (not all are documented ATM), it is not possible to tell the
> > gnome_vfs_xfer_* functions to create a missing directory structure in
> > the target path, for example:
> >
> > if source path is /home/marko/path_to/file,
> > target /tmp/path_to/file,
> >
> > and if in /tmp the directory 'path_to' doesn't exist, it would be useful
> > in my opinion to have something like
> > GNOME_VFS_XFER_CREATE_MISSING_DIRECTORIES which will result in all
> > necessary directories to be created before copying. Maybe it's just me
> > though. Has this been discussed/thought of before?
>
> I don't really like extending the already sprawling xfer api with more
> flags. In this specific instance, all you need to do is to create the
> target folder path before starting the xfer, so I don't think its a very
> important addition. (I.E. it doesn't change behaviour during the actual
> copy.)
I understand. Also I missed to notice g_mkdir_with_parents () which does
what I meant, sorry.
Marko
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]