[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH 2/3] guestfish: Add win: prefix to use Windows paths.



On Mon, Oct 26, 2009 at 11:16:57AM +0100, Jim Meyering wrote:
> Did you consider simply letting a "drive_letter:" prefix
> serve this purpose?

There's a subtle point here which means we need a real prefix.

Ordinary paths should all be prefixed by "/".

It seems we could say that paths prefixed by "\" or "C:" would be
treated as Windows paths, although I don't think I like the
implicitness going on.  But in any case this doesn't work.  We might
have some mixed path like: "/windows\system".  "win:/windows\system"
works (and "/windows\system" also works under Windows).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]