Metadata-Version: 2.1
Name: fsoopify
Version: 0.2.1
Summary: UNKNOWN
Home-page: https://github.com/Cologler/fsoopify-python
Author: Cologler
Author-email: skyoflw@gmail.com
License: MIT
Keywords: python,fs,oop,oopify,filesystem
Platform: UNKNOWN
Description-Content-Type: text/markdown

# fsoopify

![GitHub](https://img.shields.io/github/license/Cologler/fsoopify-python.svg)
[![Build Status](https://travis-ci.com/Cologler/fsoopify-python.svg?branch=master)](https://travis-ci.com/Cologler/fsoopify)
[![PyPI](https://img.shields.io/pypi/v/fsoopify.svg)](https://pypi.org/project/fsoopify/)

Just make file system oopify.

## install

``` cmd
pip install fsoopify
```

## usage

``` py
import fsoopify

[file|directory] = fsoopify.NodeInfo.from_path(...)

# api for both file and directory
file.rename()
file.get_parent()
file.is_exists()
file.is_directory()
file.is_file()
file.delete()
file.create_hardlink()

# api for file
file.open()
file.size
file.read() and file.write()
file.read_text() and file.write_text()
file.read_bytes() and file.write_bytes()
file.copy_to()
file.load() and file.dump() # I love this API

# api for directory
directory.create() and folder.ensure_created()
directory.create_file()
directory.iter_items()
directory.list_items()
directory.get_fileinfo() and folder.get_dirinfo()
```


