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