Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release.
A contents manager that uses the local file system for storage.
Bases: IPython.html.services.contents.manager.ContentsManager
Create a checkpoint from the current state of a file
Delete file by name and path.
delete a file’s checkpoint
Returns True if the path [and name] exists, else returns False.
API-style wrapper for os.path.exists
| Parameters: | name : string
path : string
|
|---|---|
| Returns: | exists : bool
|
Returns True if the file exists, else returns False.
API-style wrapper for os.path.isfile
| Parameters: | name : string
path : string
|
|---|---|
| Returns: | exists : bool
|
construct the info dict for a given checkpoint
find the path to a checkpoint
Return the initial working dir a kernel associated with a given notebook
Takes a path and name for an entity and returns its model
| Parameters: | name : str
path : str
|
|---|---|
| Returns: | model : dict
|
Does the API style path correspond to a hidden directory or file?
| Parameters: | path : string
|
|---|---|
| Returns: | exists : bool
|
list the checkpoints for a given file
This contents manager currently only supports one checkpoint per file.
Does the API-style path refer to an extant directory?
API-style wrapper for os.path.isdir
| Parameters: | path : string
|
|---|---|
| Returns: | exists : bool
|
Rename a file.
restore a file to a checkpointed state
Save the file model and return the model with no content.
Update the file’s path and/or name
For use in PATCH requests, to enable renaming a file without re-uploading its contents. Only used for renaming at the moment.