bool Array::exists(CVarRef key, bool isKey /* = false */) const { switch(key.getType()) { case KindOfBoolean: case KindOfInt64: return existsImpl(key.toInt64()); default: break; } if (isKey) return existsImpl(key); VarNR k(key.toKey()); if (!k.isNull()) { return existsImpl(k); } return false; }
bool FileImpl::createDirectoryImpl() { poco_assert (!_path.empty()); if (existsImpl() && isDirectoryImpl()) return false; if (CreateDirectoryA(_path.c_str(), 0) == 0) handleLastErrorImpl(_path); return true; }
bool FileImpl::createDirectoryImpl() { poco_assert (!_path.empty()); if (existsImpl() && isDirectoryImpl()) return false; if (mkdir(_path.c_str(), S_IRWXU | S_IRWXG | S_IRWXO) != 0) handleLastErrorImpl(_path); return true; }
bool FileImpl::createDirectoryImpl() { poco_assert (!_path.empty()); if (existsImpl() && isDirectoryImpl()) return false; Path p(_path); p.makeDirectory(); if (mkdir(p.toString().c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) != 0) handleLastErrorImpl(_path); return true; }
bool Array::exists(CStrRef key, bool isKey /* = false */) const { if (isKey) return existsImpl(key); return existsImpl(key.toKey()); }
bool Array::exists(litstr key, bool isKey /* = false */) const { if (isKey) return existsImpl(key); return existsImpl(String(key).toKey()); }
bool File::exists() const { return existsImpl(); }