added Poco::File::linkTo()

This commit is contained in:
Günter Obiltschnig
2017-12-14 10:35:07 +01:00
parent 9472b163b4
commit d29972ef24
12 changed files with 129 additions and 26 deletions

View File

@@ -49,18 +49,19 @@ protected:
void setLastModifiedImpl(const Timestamp& ts);
FileSizeImpl getSizeImpl() const;
void setSizeImpl(FileSizeImpl size);
void setWriteableImpl(bool flag = true);
void setExecutableImpl(bool flag = true);
void setWriteableImpl(bool flag = true);
void setExecutableImpl(bool flag = true);
void copyToImpl(const std::string& path) const;
void renameToImpl(const std::string& path);
void linkToImpl(const std::string& path, int type) const;
void removeImpl();
bool createFileImpl();
bool createDirectoryImpl();
static void handleLastErrorImpl(const std::string& path);
private:
std::string _path;
friend class DirectoryIteratorImpl;
friend class LinuxDirectoryWatcherStrategy;
friend class BSDDirectoryWatcherStrategy;