On Fri, Feb 01, 2002 at 11:46:09AM +0000, John Levon wrote: > On Fri, Feb 01, 2002 at 11:42:23AM +0000, Angus Leeming wrote: > > > Don't I remember something about "mv" not working between partitions. We have > > to use "cp" and then "rm". > > > > I thought that this had been fixed though... > > if (::rename(from.c_str(), to.c_str()) == -1) > if (lyx::copy(from, to)) { > lyx::unlink(from); > > rename(2) makes no mention of cross-mount problems anyhoo
From the rename(2) man page: ERRORS EISDIR newpath is an existing directory, but oldpath is not a directory. EXDEV oldpath and newpath are not on the same filesystem. The EXDEV error is what you are talking about... ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)
msg32299/pgp00000.pgp
Description: PGP signature