Lines Matching refs:newName
113 static bool verifyAndGetDestinationPathForCopyOrMove(const EntryBase* source, EntryBase* parent, const String& newName, String& destinationPath)
120 if (!newName.isEmpty() && !DOMFilePath::isValidName(newName))
128 if ((newName.isEmpty() || source->name() == newName) && DOMFilePath::getDirectory(source->fullPath()) == parent->fullPath())
132 if (!newName.isEmpty())
133 destinationPath = DOMFilePath::append(destinationPath, newName);
153 bool DOMFileSystemBase::move(const EntryBase* source, EntryBase* parent, const String& newName, PassRefPtr<EntryCallback> successCallback, PassRefPtr<ErrorCallback> errorCallback)
156 if (!verifyAndGetDestinationPathForCopyOrMove(source, parent, newName, destinationPath))
165 bool DOMFileSystemBase::copy(const EntryBase* source, EntryBase* parent, const String& newName, PassRefPtr<EntryCallback> successCallback, PassRefPtr<ErrorCallback> errorCallback)
168 if (!verifyAndGetDestinationPathForCopyOrMove(source, parent, newName, destinationPath))