mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
added new PriorityNotificationQueue, TimedNotificationQueue; added File::isDevice()
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// File.cpp
|
||||
//
|
||||
// $Id: //poco/svn/Foundation/src/File.cpp#3 $
|
||||
// $Id: //poco/Main/Foundation/src/File.cpp#22 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Filesystem
|
||||
@@ -160,6 +160,12 @@ bool File::isLink() const
|
||||
}
|
||||
|
||||
|
||||
bool File::isDevice() const
|
||||
{
|
||||
return isDeviceImpl();
|
||||
}
|
||||
|
||||
|
||||
bool File::isHidden() const
|
||||
{
|
||||
return isHiddenImpl();
|
||||
@@ -219,7 +225,7 @@ void File::copyTo(const std::string& path) const
|
||||
Path src(getPathImpl());
|
||||
Path dest(path);
|
||||
File destFile(path);
|
||||
if (destFile.exists() && destFile.isDirectory() || dest.isDirectory())
|
||||
if ((destFile.exists() && destFile.isDirectory()) || dest.isDirectory())
|
||||
{
|
||||
dest.makeDirectory();
|
||||
dest.setFileName(src.getFileName());
|
||||
|
||||
Reference in New Issue
Block a user