Consider linking to a cross-platform API for checking devices and partitions
See original GitHub issueI am currently building an utility to detect the filesystem alongside some other properties of the volumes and devices on the computer. The utility will support macOS, Windows and Linux.
On Linux I use the commands df -T
, fdisk -l
and lsblk
to obtain my information, while on mac I use diskutil info -all
and wmic logicaldisk get
on Windows. I will provide as much of a unified interface as possible, returning an hash of all devices and volumes with properties id
, node
, whole
, parent
, name
, size
, description
, physical block size
, logical block size
, read only
, removable
, filesystem type
, mounted
, mount point
, blocks
, space available
, space used
, total space
.
Interested? 😃
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Enforcing Product Partition Interfaces
Enabling product interface enforcement · Step 1: Create makefile and enable artifact path check · Step 2: Empty the allowed list · Step...
Read more >Cross-platform file system - linux
I've used this setup on a Mac and I've had no problems accessing data from an NTFS partition. Share.
Read more >Web API implementation - Best Practices
Configure policies for each web API. Policies govern aspects such as whether cross-domain calls should be allowed, how to authenticate clients, ...
Read more >How To Partition and Format Storage Devices in Linux
How To Partition and Format Storage Devices in Linux · Step 1 — Install Parted · Step 2 — Identify the New Disk...
Read more >Multi-Region Clusters
By not joining the ISR, observers give operators the ability to asynchronously replicate data. In Confluent Server the high watermark for a topic...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@philippefutureboy very cool. This should be a separate module for the time being. When I feel
fs-extra
has stability and can do things likechmodr
and regex on files, we can revisit. But until then, I’d like to keep what you have as a separate module. We’d accept a PR though to the readme to inform people that this is a complementary module.Considering closed by #534. Tagging as future to remind about merging.