Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pyfs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pyfs
Commits
093eead8
Commit
093eead8
authored
Mar 08, 2011
by
willmcgugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added httpfs to docs
parent
51b13a2d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
docs/httpfs.rst
+3
-0
docs/index.rst
+1
-0
fs/httpfs.py
+12
-2
No files found.
docs/httpfs.rst
0 → 100644
View file @
093eead8
.. automodule:: fs.httpfs
:members:
\ No newline at end of file
docs/index.rst
View file @
093eead8
...
...
@@ -38,6 +38,7 @@ Code Documentation
expose/index.rst
filelike.rst
ftpfs.rst
httpfs.rst
memoryfs.rst
mountfs.rst
multifs.rst
...
...
fs/httpfs.py
View file @
093eead8
...
...
@@ -12,10 +12,20 @@ from urllib2 import urlopen, URLError
class
HTTPFS
(
FS
):
"""Can barely be called a filesystem, but this enables the opener system
to open http files"""
"""Can barely be called a filesystem, because HTTP servers generally don't support
typical filesystem functionality. This class exists to allow the :doc:`opener` system
to read files over HTTP.
If you do need filesystem like functionality over HTTP, see :mod:`fs.contrib.davfs`.
"""
def
__init__
(
self
,
url
):
"""
:param url: The base URL
"""
self
.
root_url
=
url
def
_make_url
(
self
,
path
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment