# fs-sparse: a wrapper to check sparse file
## Generate test files
Using scripts provided in test/create_test_file.sh, it will generate two files:
normal.dat with no holes;
sparse.dat with holes.
## Usage
The interface exposes three functions, see example below. Note that if a file has no holes, the # of extents (or tuple) will be 1.
In [1]: import sparse
In [2]: sparse.get_extents(“test/sparse.dat”) Out[2]: [(0, 8192), (28672, 36864), (40960, 45056)]
In [3]: sparse.get_extents(“test/normal.dat”) Out[3]: [(0, 8192)]
In [4]: sparse.is_sparse(“test/normal.dat”) Out[4]: False
Please open issues for bug fix or feature requests.
Release files for fs-sparse 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fs_sparse-0.1.tar.gz | 2.8 kB | Details |
Release files / fs_sparse-0.1.tar.gz
| Download URL | fs_sparse-0.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9545e85b32d8128a757f3b0823ff1ef8dbaf7f253336c46b571109bba6374cc
|
|
BLAKE2b-256 checksum How to use checksums |
6d8643e6285b575f15405b4de2e6a751f76248be85e3cb943f45787fe6ee75be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |