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:
parent
a72759eb5b
commit
ac84ffb901
@ -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
|
bool
|
||||||
storageExists(const Storage *this, const String *pathExp, StorageExistsParam param)
|
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()
|
MEM_CONTEXT_TEMP_BEGIN()
|
||||||
{
|
{
|
||||||
// Build the path
|
// Build the path to the file
|
||||||
String *path = storagePathNP(this, pathExp);
|
String *path = storagePathNP(this, pathExp);
|
||||||
|
|
||||||
// Create Wait object of timeout > 0
|
// Create Wait object of timeout > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user