Skip to content

Commit 7ac01a4

Browse files
committed
Added File_IsExists article
1 parent 93b930d commit 7ac01a4

2 files changed

Lines changed: 32 additions & 6 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# File_IsExists
2+
3+
`File_IsExists` determines whether the specified file exists.
4+
5+
```csharp
6+
File_IsExists (
7+
@path NVARCHAR (MAX)
8+
)
9+
RETURNS BIT
10+
```
11+
12+
## Parameters
13+
14+
- **path**: The path of a file to check.
15+
16+
## Returns
17+
18+
`true` if path refers to an existing directory; `false` if the directory does not exist or an error occurs when trying to determine if the specified directory exists.
19+
20+
## Example
21+
22+
```csharp
23+
SELECT SQLNET::File_IsExists('C:\Temp\MyTest.txt')
24+
```
25+

docs2/pages/documentations/file/file.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ Provides methods for the creation, copying, deletion, moving, and opening of a s
1010
| [File_Decrypt(path)](/file-decrypt) | Decrypts a file that was encrypted by the current account using the [File_Encrypt](/file_encrypt) procedure. | [Try it]()|
1111
| [File_Delete(path)](/file-delete) | Deletes the specified file. | [Try it]()|
1212
| [File_Encrypt(path)](/file-encrypt) | Encrypts a file so that only the account used to encrypt the file can decrypt it. | [Try it]()|
13-
| [File_GetCreationTime](/file-get-creation-time) | Returns the creation date and time of the specified file or directory. | [Try it]()|
14-
| [File_GetCreationTimeUtc](/file-get-creation-time-utc) | Returns the creation date and time, in coordinated universal time (UTC), of the specified file or directory. | [Try it]()|
15-
| [File_GetLastAccessTime](/file-get-last-access-time) | Returns the date and time the specified file or directory was last accessed. | [Try it]()|
16-
| [File_GetLastAccessTimeUtc](/file-get-last-access-time-utc) | Returns the date and time, in coordinated universal time (UTC), that the specified file or directory was last accessed. | [Try it]()|
17-
| [File_GetLastWriteTime](/file-get-last-write-time) | Returns the date and time the specified file or directory was last written to. | [Try it]()|
18-
| [File_GetLastWriteTimeUtc](/file-get-last-write-time-utc) | Returns the date and time, in coordinated universal time (UTC), that the specified file or directory was last written to. | [Try it]()|
13+
| [File_GetCreationTime(path)](/file-get-creation-time) | Returns the creation date and time of the specified file or directory. | [Try it]()|
14+
| [File_GetCreationTimeUtc(path)](/file-get-creation-time-utc) | Returns the creation date and time, in coordinated universal time (UTC), of the specified file or directory. | [Try it]()|
15+
| [File_GetLastAccessTime(path)](/file-get-last-access-time) | Returns the date and time the specified file or directory was last accessed. | [Try it]()|
16+
| [File_GetLastAccessTimeUtc(path)](/file-get-last-access-time-utc) | Returns the date and time, in coordinated universal time (UTC), that the specified file or directory was last accessed. | [Try it]()|
17+
| [File_GetLastWriteTime(path)](/file-get-last-write-time) | Returns the date and time the specified file or directory was last written to. | [Try it]()|
18+
| [File_GetLastWriteTimeUtc(path)](/file-get-last-write-time-utc) | Returns the date and time, in coordinated universal time (UTC), that the specified file or directory was last written to. | [Try it]()|
19+
| [File_IsExists(path)](/file-isexists) | Determines whether the specified file exists. | [Try it]()|

0 commit comments

Comments
 (0)