Metadata-Version: 1.2
Name: fs-sparse
Version: 0.1
Summary: A wrapper for sparse file detection
Home-page: UNKNOWN
Author: Feiyi Wang
Author-email: fwang2@ornl.gov
License: Apache
Description-Content-Type: UNKNOWN
Description: # 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.
        
        
        
Platform: Linux
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: System :: Filesystems
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 2.7
Requires-Python: >=2.7, <3
