{"id":21957640,"url":"https://github.com/bitbeans/diskdetector-net","last_synced_at":"2025-04-23T16:20:22.564Z","repository":{"id":84742345,"uuid":"41258407","full_name":"bitbeans/diskdetector-net","owner":"bitbeans","description":"Extended drive information on windows (SSD and HDD detection)","archived":false,"fork":false,"pushed_at":"2019-12-29T15:39:29.000Z","size":25,"stargazers_count":17,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-19T04:14:26.190Z","etag":null,"topics":["detection","hdd","ssd"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitbeans.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-08-23T16:55:04.000Z","updated_at":"2025-03-02T09:04:23.000Z","dependencies_parsed_at":"2023-06-16T15:30:41.431Z","dependency_job_id":null,"html_url":"https://github.com/bitbeans/diskdetector-net","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbeans%2Fdiskdetector-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbeans%2Fdiskdetector-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbeans%2Fdiskdetector-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbeans%2Fdiskdetector-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitbeans","download_url":"https://codeload.github.com/bitbeans/diskdetector-net/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250468275,"owners_count":21435453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["detection","hdd","ssd"],"created_at":"2024-11-29T08:55:03.324Z","updated_at":"2025-04-23T16:20:22.531Z","avatar_url":"https://github.com/bitbeans.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# diskdetector-net [![NuGet Version](https://img.shields.io/nuget/v/diskdetector-net.svg?style=flat-square)](https://www.nuget.org/packages/diskdetector-net/) [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat-square)](https://github.com/bitbeans/diskdetector-net/blob/master/LICENSE.md)\n\n\nClass to detect the hardware type (SSD or HDD) of a hard disk on windows based systems.\n\nThis implementation is based on [emoacht.wordpress.com](https://emoacht.wordpress.com/2012/11/06/csharp-ssd/).\n\n\n\n## Installation\n\nThere is a [NuGet package](https://www.nuget.org/packages/diskdetector-net/) available.\n\n## Example\n\n```csharp\npublic void DetectFixedDrivesTest()\n{\n    var detectedDrives = Detector.DetectFixedDrives(QueryType.SeekPenalty);\n    if (detectedDrives.Count != 0)\n    {\n        foreach (var detectedDrive in detectedDrives)\n        {\n            Console.WriteLine(\"Drive {0}\", detectedDrive.Name);\n            Console.WriteLine(\"  File type: {0}\", detectedDrive.DriveType);\n\n            Console.WriteLine(\"  Volume label: {0}\", detectedDrive.VolumeLabel);\n            Console.WriteLine(\"  File system: {0}\", detectedDrive.DriveFormat);\n            Console.WriteLine(\"  Letter: {0}\", detectedDrive.DriveLetter);\n            Console.WriteLine(\"  HardwareType: {0}\", detectedDrive.HardwareType);\n            Console.WriteLine(\"  Id: {0}\", detectedDrive.Id);\n            Console.WriteLine(\n                \"  Available space to current user:{0, 15} bytes\",\n                detectedDrive.AvailableFreeSpace);\n\n            Console.WriteLine(\n                \"  Total available space:          {0, 15} bytes\",\n                detectedDrive.TotalFreeSpace);\n\n            Console.WriteLine(\n                \"  Total size of drive:            {0, 15} bytes \",\n                detectedDrive.TotalSize);\n        }\n    }\n\n    /*\n    Drive C:\\\n        File type: Fixed\n        Volume label: Windows\n        File system: NTFS\n        Letter: C\n        HardwareType: Ssd\n        Id: 0\n        Available space to current user:    23861460992 bytes\n        Total available space:              23861460992 bytes\n        Total size of drive:               255505461248 bytes \n    Drive F:\\\n        File type: Fixed\n        Volume label: Data\n        File system: NTFS\n        Letter: F\n        HardwareType: Hdd\n        Id: 1\n        Available space to current user:  1250781491200 bytes\n        Total available space:            1250781491200 bytes\n        Total size of drive:              2000397791232 bytes \n    */\n\n```\n\n## License\n[MIT](https://en.wikipedia.org/wiki/MIT_License)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitbeans%2Fdiskdetector-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitbeans%2Fdiskdetector-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitbeans%2Fdiskdetector-net/lists"}