Lines Matching refs:sys
29 assert(sys::fs::is_directory(Dir)); in addDirectory()
38 if (sys::fs::real_path(Path, TmpDest)) in isCaseSensitivePath()
47 if (!sys::fs::real_path(UpperDest, RealDest) && Path == RealDest) in isCaseSensitivePath()
54 assert(sys::path::is_absolute(Root) && "Root not absolute"); in FileCollector()
55 assert(sys::path::is_absolute(OverlayRoot) && "OverlayRoot not absolute"); in FileCollector()
61 StringRef Filename = sys::path::filename(SrcPath); in updateWithRealPath()
62 StringRef Directory = sys::path::parent_path(SrcPath); in updateWithRealPath()
72 if (sys::fs::real_path(Directory, RealPath)) in updateWithRealPath()
84 sys::path::append(RealPath, Filename); in updateWithRealPath()
93 sys::fs::make_absolute(Path); in makeAbsolute()
96 sys::path::native(Path); in makeAbsolute()
99 Path.erase(Path.begin(), sys::path::remove_leading_dotslash( in makeAbsolute()
117 sys::path::remove_dots(Paths.VirtualPath, /*remove_dot_dot=*/true); in canonicalize()
126 sys::path::append(DstPath, sys::path::relative_path(Paths.CopyFrom)); in addFileImpl()
145 if (It->type() == sys::fs::file_type::regular_file || in addDirectoryImpl()
146 It->type() == sys::fs::file_type::directory_file || in addDirectoryImpl()
147 It->type() == sys::fs::file_type::symlink_file) { in addDirectoryImpl()
161 const sys::fs::file_status &Stat) { in copyAccessAndModificationTime()
165 sys::fs::openFileForWrite(Filename, FD, sys::fs::CD_OpenExisting)) in copyAccessAndModificationTime()
168 if (auto EC = sys::fs::setLastAccessAndModificationTime( in copyAccessAndModificationTime()
172 if (auto EC = sys::Process::SafelyCloseFileDescriptor(FD)) in copyAccessAndModificationTime()
179 auto Err = sys::fs::create_directories(Root, /*IgnoreExisting=*/true); in copyFiles()
188 sys::fs::file_status Stat; in copyFiles()
189 if (std::error_code EC = sys::fs::status(entry.VPath, Stat)) { in copyFiles()
196 if (Stat.type() == sys::fs::file_type::file_not_found) in copyFiles()
201 sys::fs::create_directories(sys::path::parent_path(entry.RPath), in copyFiles()
207 if (Stat.type() == sys::fs::file_type::directory_file) { in copyFiles()
210 sys::fs::create_directories(entry.RPath, in copyFiles()
219 if (std::error_code EC = sys::fs::copy_file(entry.VPath, entry.RPath)) { in copyFiles()
225 if (auto perms = sys::fs::getPermissions(entry.VPath)) { in copyFiles()
226 if (std::error_code EC = sys::fs::setPermissions(entry.RPath, *perms)) { in copyFiles()
246 raw_fd_ostream os(MappingFile, EC, sys::fs::OF_TextWithCRLF); in writeMapping()