void FileImpl::removeImpl() { poco_assert (!_path.empty()); int rc; if (isDirectoryImpl()) { setWriteableImpl(true); rc = rmdir(_path.c_str()); } else { rc = unlink(_path.c_str()); } if (rc) handleLastErrorImpl(_path); }
void File::setReadOnly(bool flag) { setWriteableImpl(!flag); }
void File::setWriteable(bool flag) { setWriteableImpl(flag); }