dont expose metadata etag for now

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2019-10-30 15:36:23 +01:00
parent 1b6e647b63
commit 136c4ef925
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
5 changed files with 0 additions and 29 deletions

View File

@ -178,10 +178,6 @@ class TrashItem implements ITrashItem {
return $this->getOriginalLocation(); return $this->getOriginalLocation();
} }
public function getMetadataEtag(): ?string {
return $this->fileInfo->getMetadataEtag();
}
public function getCreationTime(): int { public function getCreationTime(): int {
return $this->fileInfo->getCreationTime(); return $this->fileInfo->getCreationTime();
} }

View File

@ -407,10 +407,6 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
return pathinfo($this->getName(), PATHINFO_EXTENSION); return pathinfo($this->getName(), PATHINFO_EXTENSION);
} }
public function getMetadataEtag(): ?string {
return $this->data['metadata_etag'];
}
public function getCreationTime(): int { public function getCreationTime(): int {
return $this->data['creation_time']; return $this->data['creation_time'];
} }

View File

@ -481,13 +481,6 @@ class LazyRoot implements IRootFolder {
return $this->__call(__FUNCTION__, func_get_args()); return $this->__call(__FUNCTION__, func_get_args());
} }
/**
* @inheritDoc
*/
public function getMetadataEtag(): ?string {
return $this->__call(__FUNCTION__, func_get_args());
}
/** /**
* @inheritDoc * @inheritDoc
*/ */

View File

@ -444,10 +444,6 @@ class Node implements \OCP\Files\Node {
} }
} }
public function getMetadataEtag(): ?string {
return $this->getFileInfo()->getMetadataEtag();
}
public function getCreationTime(): int { public function getCreationTime(): int {
return $this->getFileInfo()->getCreationTime(); return $this->getFileInfo()->getCreationTime();
} }

View File

@ -269,16 +269,6 @@ interface FileInfo {
*/ */
public function getExtension(): string; public function getExtension(): string;
/**
* Get the metadata etag for the file
*
* Unlike the regular etag, the metadata etag also gets updated on metadata only changes
*
* @return string | null
* @since 18.0.0
*/
public function getMetadataEtag(): ?string;
/** /**
* Get the creation date as unix timestamp * Get the creation date as unix timestamp
* *