예제 #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);
}