Lines Matching defs:file_spec
366 FileSpec file_spec(cwd);
367 FileSystem::Instance().Resolve(file_spec);
368 return file_spec;
583 bool Platform::SetWorkingDirectory(const FileSpec &file_spec) {
586 LLDB_LOG(log, "{0}", file_spec);
587 if (std::error_code ec = llvm::sys::fs::set_current_path(file_spec.GetPath())) {
594 return SetRemoteWorkingDirectory(file_spec);
598 Status Platform::MakeDirectory(const FileSpec &file_spec,
601 return llvm::sys::fs::create_directory(file_spec.GetPath(), permissions);
610 Status Platform::GetFilePermissions(const FileSpec &file_spec,
613 auto Value = llvm::sys::fs::getPermissions(file_spec.GetPath());
625 Status Platform::SetFilePermissions(const FileSpec &file_spec,
629 return llvm::sys::fs::setPermissions(file_spec.GetPath(), Perms);
638 user_id_t Platform::OpenFile(const FileSpec &file_spec,
642 return FileCache::GetInstance().OpenFile(file_spec, flags, mode, error);
652 user_id_t Platform::GetFileSize(const FileSpec &file_spec) {
657 if (llvm::sys::fs::file_size(file_spec.GetPath(), Size))
1214 bool Platform::GetFileExists(const lldb_private::FileSpec &file_spec) {
1216 return FileSystem::Instance().Exists(file_spec);
1273 Platform::CalculateMD5(const FileSpec &file_spec) {
1276 return llvm::sys::fs::md5_contents(file_spec.GetPath());