Add filesystem:: and filesystem::exchange, fix - assert_file creates an empty file...
authorMichael Andres <ma@suse.de>
Fri, 22 May 2009 13:32:19 +0000 (15:32 +0200)
committerMichael Andres <ma@suse.de>
Fri, 22 May 2009 13:32:19 +0000 (15:32 +0200)
commit5aa014d6ddd28d2170bab96d5f8e35005bc948db
treebaa81308234599cc89f48266164606a73eeb7a5a
parente5215e6e06c5fa7312e910e5b964f24c763bd68d
Add filesystem:: and filesystem::exchange, fix - assert_file creates an empty file if it not yet exists. Parent dirs
  are created as needed.
- exchange exchanges two files or directories located on the same
  filesystem. Mainly used when creating new config files in a temp
  file and later exchanging it with the original one.
- fixed assert_dir returning OK, if the path alsready exists but isn't a
  directory.
- updated testcases
tests/zypp/PathInfo_test.cc
zypp/PathInfo.cc
zypp/PathInfo.h