Skip to content

Commit dd43e28

Browse files
Edits
1 parent eaa746f commit dd43e28

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

articles/storage/files/storage-dotnet-how-to-use-files.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,21 @@ For more information and examples, see the following resources:
144144

145145
### Mount a file share
146146

147-
To use `System.IO`, you must first mount a file share. For instructions, see [Mount an Azure file share](mount-service-overview.md).
147+
To use `System.IO`, you must first mount a file share. See the following resources for guidance on how to mount a file share using SMB or NFS:
148148

149-
### Example: Connect to a file share and enumerate directories
149+
- [Mount an SMB file share on Windows](storage-how-to-use-files-windows.md)
150+
- [Mount an SMB file share on Linux](storage-how-to-use-files-linux.md)
151+
- [Mount an NFS file share on Linux](storage-files-how-to-mount-nfs-shares.md)
150152

151-
The following code example shows how to connect to a file share and list the files in the share:
153+
In this article, we use the following path to refer to a mounted SMB file share on Windows:
154+
155+
```csharp
156+
string fileSharePath = @"Z:\file-share";
157+
```
158+
159+
### Example: Connect to a file share and enumerate directories using System.IO
160+
161+
The following code example shows how to connect to a file share and list the directories in the share:
152162

153163
```csharp
154164
using System.IO;
@@ -180,7 +190,7 @@ static void EnumerateDirectories(string path)
180190
}
181191
```
182192

183-
### Example: Write to a file in a file share
193+
### Example: Write to a file in a file share using System.IO
184194

185195
The following code example shows how to write and append text with the `File` class:
186196

@@ -203,7 +213,7 @@ static void WriteToFile(string fileSharePath, string fileName)
203213
}
204214
```
205215
206-
### Example: Lock a file in a file share
216+
### Example: Lock a file in a file share using System.IO
207217
208218
The following code example shows how to lock a file in a file share:
209219
@@ -236,7 +246,7 @@ static void LockFile(string filePath)
236246
}
237247
```
238248
239-
### Example: Enumerate file ACLs
249+
### Example: Enumerate file ACLs using System.IO
240250
241251
The following code example shows how to enumerate ACLs for a file:
242252

articles/storage/files/storage-files-developer-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This article provides an overview of application development with Azure Files an
1515

1616
## About app development with Azure Files
1717

18-
Azure Files offers several ways for developers to access data and manage resources in Azure Files. The following table lists the approaches, summarizes how they work, and provides guidance on when to use each approach:
18+
Azure Files offers several ways for developers to access data and manage resources in Azure file shares. The following table lists the approaches, summarizes how they work, and provides guidance on when to use each approach:
1919

2020
| Approach | How it works | When to use |
2121
| --- | --- | --- |

0 commit comments

Comments
 (0)