File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,9 @@ pub fn read_to_string<P: AsRef<Path>>(path: P) -> io::Result<String> {
295
295
/// This function will create a file if it does not exist,
296
296
/// and will entirely replace its contents if it does.
297
297
///
298
+ /// Depending on the platform, this function may fail if the
299
+ /// full directory path does not exist.
300
+ ///
298
301
/// This is a convenience function for using [`File::create`] and [`write_all`]
299
302
/// with fewer imports.
300
303
///
@@ -349,6 +352,9 @@ impl File {
349
352
/// This function will create a file if it does not exist,
350
353
/// and will truncate it if it does.
351
354
///
355
+ /// Depending on the platform, this function may fail if the
356
+ /// full directory path does not exist.
357
+ ///
352
358
/// See the [`OpenOptions::open`] function for more details.
353
359
///
354
360
/// # Examples
You can’t perform that action at this time.
0 commit comments