1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00

Clarify that storageExists() is only valid for files.

Contributed by Cynthia Shang.
This commit is contained in:
Cynthia Shang 2018-12-06 11:57:30 -05:00 committed by David Steele
parent a72759eb5b
commit ac84ffb901

View File

@ -126,7 +126,7 @@ storageCopy(StorageFileRead *source, StorageFileWrite *destination)
}
/***********************************************************************************************************************************
Does a file/path exist?
Does a file exist? This function is only for files, not directories.
***********************************************************************************************************************************/
bool
storageExists(const Storage *this, const String *pathExp, StorageExistsParam param)
@ -143,7 +143,7 @@ storageExists(const Storage *this, const String *pathExp, StorageExistsParam par
MEM_CONTEXT_TEMP_BEGIN()
{
// Build the path
// Build the path to the file
String *path = storagePathNP(this, pathExp);
// Create Wait object of timeout > 0