-int stat(const Path &fn, struct stat &st)
-{
- return ::stat(fn.str().c_str(), &st);
-}
-
-struct stat stat(const Path &fn)
-{
- struct stat st;
- if(stat(fn, st)==-1)
- throw system_error("stat");
- return st;
-}
+Stat::Stat(const Stat &other):
+ exists(other.exists),
+ type(other.type),
+ size(other.type),
+ alloc_size(other.alloc_size),
+ mtime(other.mtime),
+ owner_info(other.owner_info),
+ priv(other.priv ? new Private(*other.priv) : nullptr)
+{ }