-
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Transcribe docstrings in `fs.filesize` * Start rewriting docstrings to Google style * Add pydocstyle configuration to `setup.cfg` * Enforce Google conventions in param types * Edit most docstrings of `fs` submodules * Enhance docstrings of properties * Transcribe docstrings in `fs.osfs` * Transcribe docstrings in `fs.zipfs` * changed ValueError to TypeError * Minor fixes to documentation * Configure pydocstyle to ignore tests folder * Rewrite errors docstring in stdlib-style * Add subsection titles to the doc source * Make pydocstyle ignore private modules * Fix all non-D102 pydocstyle errors * Remove '# noqa: D102' and ignore it in config file. * Add `fs.filesize` to doc reference * Move some documentation in the source doc to the source code * Add docstring title to every public module. * Fix miscellaneous documentation issues. * Use default ':obj:' ref inside docstrings * Fix non-ASCII symbol breaking build on Python 2.7 * Fix missing double quotes in `BoundWalker.info`
- Loading branch information
1 parent
d2da568
commit a23e87f
Showing
71 changed files
with
2,386 additions
and
2,050 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
App Filesystems | ||
=============== | ||
|
||
Filesystems for platform-specific application directories. | ||
|
||
.. automodule:: fs.appfs | ||
:members: | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
fs.base.FS | ||
========== | ||
fs.base | ||
======= | ||
|
||
The filesystem base class is common to all filesystems. If you | ||
familiarize yourself with this (rather straightforward) API, you can | ||
work with any of the supported filesystems. | ||
|
||
.. autoclass:: fs.base.FS | ||
:members: | ||
.. automodule:: fs.base | ||
:members: FS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
fs.copy | ||
======= | ||
|
||
Copying files from one filesystem to another. | ||
|
||
.. automodule:: fs.copy | ||
:members: | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
fs.enums | ||
======== | ||
|
||
.. autoclass:: fs.ResourceType | ||
:members: | ||
|
||
|
||
.. autoclass:: fs.Seek | ||
:members: | ||
.. automodule:: fs.enums | ||
:members: ResourceType, Seek | ||
:member-order: bysource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ fs.errors | |
========= | ||
|
||
.. automodule:: fs.errors | ||
:members: | ||
:members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fs.filesize | ||
=========== | ||
|
||
.. automodule:: fs.filesize | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
FTP Filesystem | ||
============== | ||
|
||
Manage resources on a FTP server. | ||
|
||
.. automodule:: fs.ftpfs | ||
:members: | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
Memory Filesystem | ||
================= | ||
|
||
Create and manage an in-memory filesystems. | ||
|
||
.. automodule:: fs.memoryfs | ||
:members: | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
fs.mirror | ||
========= | ||
|
||
Create a duplicate of a filesystem. | ||
|
||
Mirroring will create a copy of a source filesystem on a destination | ||
filesystem. If there are no files on the destination, then mirroring | ||
is simply a straight copy. If there are any files or directories on the | ||
destination they may be deleted or modified to match the source. | ||
|
||
In order to avoid redundant copying of files, ``mirror`` can compare | ||
timestamps, and only copy files with a newer modified date. This | ||
timestamp comparison is only done if the file sizes are different. | ||
|
||
This scheme will work if you have mirrored a directory previously, and | ||
you would like to copy any changes. Otherwise you should set the | ||
``copy_if_newer`` parameter to ``False`` to guarantee an exact copy, at | ||
the expense of potentially copying extra files. | ||
|
||
.. autofunction:: fs.mirror.mirror | ||
.. automodule:: fs.mirror | ||
:members: mirror |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
fs.move | ||
======= | ||
|
||
Moving files from one filesystem to another. | ||
|
||
.. automodule:: fs.move | ||
:members: | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,5 +51,5 @@ directories:: | |
`-- theme.html | ||
|
||
|
||
.. automodule:: fs.multifs | ||
:members: | ||
.. autoclass:: fs.multifs.MultiFS | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
OS Filesystem | ||
============= | ||
|
||
Manage the filesystem provided by your OS. | ||
|
||
In essence an ``OSFS`` is a thin layer over the ``io`` and ``os`` modules in the Python library. | ||
|
||
.. automodule:: fs.osfs | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ Sub Filesystem | |
============== | ||
|
||
.. automodule:: fs.subfs | ||
:members: | ||
:members: | ||
:member-order: bysource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
Tar Filesystem | ||
============== | ||
|
||
A filesystem implementation for .tar files. | ||
|
||
.. automodule:: fs.tarfs | ||
:members: | ||
:member-order: bysource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
Temporary Filesystem | ||
==================== | ||
|
||
A temporary filesytem is stored in a location defined by your OS (``/tmp`` on linux). The contents are deleted when the filesystem is closed. | ||
|
||
A ``TempFS`` is a good way of preparing a directory structure in advance, that you can later copy. It can also be used as a temporary data store. | ||
|
||
.. automodule:: fs.tempfs | ||
:members: | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
fs.tree | ||
======= | ||
|
||
Render a text tree view, with optional color in terminals. | ||
|
||
.. automodule:: fs.tree | ||
:members: | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
Zip Filesystem | ||
============== | ||
|
||
A filesystem implementation for .zip files. | ||
|
||
.. automodule:: fs.zipfs | ||
:members: | ||
:member-order: bysource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
"""Version, used in module and setup.py.""" | ||
"""Version, used in module and setup.py. | ||
""" | ||
__version__ = "2.0.12a0" |
Oops, something went wrong.