示例#1
0
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);
}
示例#2
0
void File::setReadOnly(bool flag)
{
	setWriteableImpl(!flag);
}
示例#3
0
void File::setWriteable(bool flag)
{
	setWriteableImpl(flag);
}