question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider linking to a cross-platform API for checking devices and partitions

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
jprichardsoncommented, Jan 5, 2018

@philippefutureboy very cool. This should be a separate module for the time being. When I feel fs-extra has stability and can do things like chmodr 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.

1reaction
RyanZimcommented, Jan 6, 2018

Considering closed by #534. Tagging as future to remind about merging.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found