82 references to FileSystem
System.Private.CoreLib (82)
src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (16)
34
FileSystem
.CreateDirectory(fullPath);
91
return
FileSystem
.DirectoryExists(fullPath);
103
FileSystem
.SetCreationTime(fullPath, creationTime, asDirectory: true);
109
FileSystem
.SetCreationTime(fullPath, File.GetUtcDateTimeOffset(creationTimeUtc), asDirectory: true);
125
FileSystem
.SetLastWriteTime(fullPath, lastWriteTime, asDirectory: true);
131
FileSystem
.SetLastWriteTime(fullPath, File.GetUtcDateTimeOffset(lastWriteTimeUtc), asDirectory: true);
147
FileSystem
.SetLastAccessTime(fullPath, lastAccessTime, asDirectory: true);
153
FileSystem
.SetLastAccessTime(fullPath, File.GetUtcDateTimeOffset(lastAccessTimeUtc), asDirectory: true);
274
FileSystem
.MoveDirectory(Path.GetFullPath(sourceDirName), Path.GetFullPath(destDirName));
280
FileSystem
.RemoveDirectory(fullPath, false);
286
FileSystem
.RemoveDirectory(fullPath, recursive);
291
return
FileSystem
.GetLogicalDrives();
312
FileSystem
.VerifyValidPath(pathToTarget, nameof(pathToTarget));
314
FileSystem
.CreateSymbolicLink(path, pathToTarget, isDirectory: true);
332
FileSystem
.VerifyValidPath(linkPath, nameof(linkPath));
333
return
FileSystem
.ResolveLinkTarget(linkPath, returnFinalTarget, isDirectory: true);
src\libraries\System.Private.CoreLib\src\System\IO\Directory.Unix.cs (2)
15
if ((unixCreateMode & ~
FileSystem
.ValidUnixFileModes) != 0)
22
FileSystem
.CreateDirectory(fullPath, unixCreateMode);
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (4)
93
FileSystem
.CreateDirectory(newPath);
103
FileSystem
.CreateDirectory(FullPath);
212
FileSystem
.MoveDirectory(FullPath, destination);
227
FileSystem
.RemoveDirectory(FullPath, recursive);
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (40)
55
FileSystem
.CopyFile(Path.GetFullPath(sourceFileName), Path.GetFullPath(destFileName), overwrite);
84
FileSystem
.DeleteFile(Path.GetFullPath(path));
111
return
FileSystem
.FileExists(path);
184
=>
FileSystem
.SetCreationTime(Path.GetFullPath(path), creationTime, asDirectory: false);
211
FileSystem
.SetCreationTime(fileHandle, creationTime);
215
=>
FileSystem
.SetCreationTime(Path.GetFullPath(path), GetUtcDateTimeOffset(creationTimeUtc), asDirectory: false);
243
FileSystem
.SetCreationTime(fileHandle, GetUtcDateTimeOffset(creationTimeUtc));
247
=>
FileSystem
.GetCreationTime(Path.GetFullPath(path)).LocalDateTime;
268
return
FileSystem
.GetCreationTime(fileHandle).LocalDateTime;
272
=>
FileSystem
.GetCreationTime(Path.GetFullPath(path)).UtcDateTime;
293
return
FileSystem
.GetCreationTime(fileHandle).UtcDateTime;
297
=>
FileSystem
.SetLastAccessTime(Path.GetFullPath(path), lastAccessTime, false);
324
FileSystem
.SetLastAccessTime(fileHandle, lastAccessTime);
328
=>
FileSystem
.SetLastAccessTime(Path.GetFullPath(path), GetUtcDateTimeOffset(lastAccessTimeUtc), false);
355
FileSystem
.SetLastAccessTime(fileHandle, GetUtcDateTimeOffset(lastAccessTimeUtc));
359
=>
FileSystem
.GetLastAccessTime(Path.GetFullPath(path)).LocalDateTime;
380
return
FileSystem
.GetLastAccessTime(fileHandle).LocalDateTime;
384
=>
FileSystem
.GetLastAccessTime(Path.GetFullPath(path)).UtcDateTime;
405
return
FileSystem
.GetLastAccessTime(fileHandle).UtcDateTime;
409
=>
FileSystem
.SetLastWriteTime(Path.GetFullPath(path), lastWriteTime, false);
436
FileSystem
.SetLastWriteTime(fileHandle, lastWriteTime);
440
=>
FileSystem
.SetLastWriteTime(Path.GetFullPath(path), GetUtcDateTimeOffset(lastWriteTimeUtc), false);
467
FileSystem
.SetLastWriteTime(fileHandle, GetUtcDateTimeOffset(lastWriteTimeUtc));
471
=>
FileSystem
.GetLastWriteTime(Path.GetFullPath(path)).LocalDateTime;
492
return
FileSystem
.GetLastWriteTime(fileHandle).LocalDateTime;
496
=>
FileSystem
.GetLastWriteTime(Path.GetFullPath(path)).UtcDateTime;
517
return
FileSystem
.GetLastWriteTime(fileHandle).UtcDateTime;
521
=>
FileSystem
.GetAttributes(Path.GetFullPath(path));
541
return
FileSystem
.GetAttributes(fileHandle);
545
=>
FileSystem
.SetAttributes(Path.GetFullPath(path), fileAttributes);
569
FileSystem
.SetAttributes(fileHandle, fileAttributes);
1028
FileSystem
.ReplaceFile(
1054
if (!
FileSystem
.FileExists(fullSourceFileName))
1059
FileSystem
.MoveFile(fullSourceFileName, fullDestFileName, overwrite);
1066
FileSystem
.Encrypt(path);
1073
FileSystem
.Decrypt(path);
1429
FileSystem
.VerifyValidPath(pathToTarget, nameof(pathToTarget));
1431
FileSystem
.CreateSymbolicLink(path, pathToTarget, isDirectory: false);
1449
FileSystem
.VerifyValidPath(linkPath, nameof(linkPath));
1450
return
FileSystem
.ResolveLinkTarget(linkPath, returnFinalTarget, isDirectory: false);
src\libraries\System.Private.CoreLib\src\System\IO\File.Unix.cs (4)
11
=>
FileSystem
.GetUnixFileMode(Path.GetFullPath(path));
14
=>
FileSystem
.GetUnixFileMode(fileHandle);
17
=>
FileSystem
.SetUnixFileMode(Path.GetFullPath(path), mode);
20
=>
FileSystem
.SetUnixFileMode(fileHandle, mode);
src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (4)
96
FileSystem
.CopyFile(FullPath, destinationPath, overwrite);
109
FileSystem
.DeleteFile(FullPath);
169
FileSystem
.MoveFile(FullPath, fullDestFileName, overwrite);
186
FileSystem
.ReplaceFile(
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (5)
91
var mode = ((UnixFileMode)_fileCache.Mode &
FileSystem
.ValidUnixFileModes);
261
int oldMode = _fileCache.Mode & (int)
FileSystem
.ValidUnixFileModes;
468
return (UnixFileMode)(_fileCache.Mode & (int)
FileSystem
.ValidUnixFileModes);
479
if ((mode & ~
FileSystem
.ValidUnixFileModes) != 0)
541
_fileCache.Mode = Interop.Sys.FileTypes.S_IFLNK | (target.Mode & (int)
FileSystem
.ValidUnixFileModes);
src\libraries\System.Private.CoreLib\src\System\IO\FileStreamOptions.cs (1)
142
if (value.HasValue && ((value & ~
FileSystem
.ValidUnixFileModes) != 0))
src\libraries\System.Private.CoreLib\src\System\IO\FileSystemInfo.cs (4)
121
_linkTarget =
FileSystem
.GetLinkTarget(FullPath, this is DirectoryInfo);
163
FileSystem
.VerifyValidPath(pathToTarget, nameof(pathToTarget));
164
FileSystem
.CreateSymbolicLink(OriginalPath, pathToTarget, this is DirectoryInfo);
180
FileSystem
.ResolveLinkTarget(FullPath, returnFinalTarget, this is DirectoryInfo);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (2)
768
bool exists =
FileSystem
.FileExists(assemblyPath);
778
exists =
FileSystem
.FileExists(assemblyPath);