summaryrefslogtreecommitdiff
path: root/fs/memoryfs.py
Commit message (Collapse)AuthorAgeFilesLines
* adde utils.copydir_progress method willmcgugan@gmail.com2015-02-031-1/+1
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@911 67cdc799-7952-0410-af00-57a81ceafa0f
* Test fixes and preparations for 0.5.0 releasewillmcgugan@gmail.com2014-03-131-15/+14
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@887 67cdc799-7952-0410-af00-57a81ceafa0f
* Fixed issue in memoryfs.makedir where a path containing a forward slash at ↵willmcgugan@gmail.com2013-07-061-1/+1
| | | | | | the end would create a directory with an empty filename git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@860 67cdc799-7952-0410-af00-57a81ceafa0f
* Change of api (fs.open, fs.setcontent, fs.getcontents) to support io module ↵willmcgugan@gmail.com2013-03-311-88/+107
| | | | | | in Py2.6+ and Py3 git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@854 67cdc799-7952-0410-af00-57a81ceafa0f
* Prevent MemoryFS.removedir(..., recursive=True) removing non-empty parent ↵gcode@loowis.durge.org2012-10-261-0/+3
| | | | | | | | directories, and fixed up corresponding unit test. Fixes Issue 137 git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@825 67cdc799-7952-0410-af00-57a81ceafa0f
* Found and fixed some more sneaky Python3 str->bytes problemsgcode@loowis.durge.org2012-08-151-2/+3
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@808 67cdc799-7952-0410-af00-57a81ceafa0f
* memoryfs.MemoryFile read() and write() methods now respect the file's opengcode@loowis.durge.org2012-04-101-0/+12
| | | | | | | mode. Fixes Issue113. git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@762 67cdc799-7952-0410-af00-57a81ceafa0f
* Changed DeleteRootError to RemoveRootError for consistencywillmcgugan2012-01-111-3/+3
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@737 67cdc799-7952-0410-af00-57a81ceafa0f
* Fixed copydir/movedir, added DeleteRootErrorwillmcgugan2012-01-111-2/+8
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@736 67cdc799-7952-0410-af00-57a81ceafa0f
* Python3 compatibilitywillmcgugan2011-12-271-5/+7
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@725 67cdc799-7952-0410-af00-57a81ceafa0f
* First stab at a Python3 portwillmcgugan2011-12-261-6/+10
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@724 67cdc799-7952-0410-af00-57a81ceafa0f
* Added "thread_safe" meta valuewillmcgugan2011-03-071-10/+11
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@643 67cdc799-7952-0410-af00-57a81ceafa0f
* fs.path optimizations since these functions are called so frequentlywillmcgugan2010-12-201-16/+25
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@566 67cdc799-7952-0410-af00-57a81ceafa0f
* Added fsmount command, made memroyfs work with threadswillmcgugan2010-12-121-121/+147
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@550 67cdc799-7952-0410-af00-57a81ceafa0f
* Changed syntax for commands to be more url like, optimized sftps to use ↵willmcgugan2010-12-091-6/+27
| | | | | | fewer queries for listdir git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@543 67cdc799-7952-0410-af00-57a81ceafa0f
* Added FS command line scriptswillmcgugan2010-12-051-0/+2
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@537 67cdc799-7952-0410-af00-57a81ceafa0f
* Fixed getmeta/hasmeta, added documentation and testswillmcgugan2010-11-201-2/+6
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@534 67cdc799-7952-0410-af00-57a81ceafa0f
* Added getmeta and hasmeta methodswillmcgugan2010-11-071-0/+6
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@526 67cdc799-7952-0410-af00-57a81ceafa0f
* add module "fs.filelike" with utils for building file-like objects.rfkelly02010-11-071-5/+1
| | | | | | | | | | | This is a local copy of the guts of my "filelike" module, re-licensed under the MIT license. This commit also uses it to fix a few edge-cases in various filesystem implementations (e.g. truncating StringIO objects). git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@521 67cdc799-7952-0410-af00-57a81ceafa0f
* Added a check to the MemoryFS constructor that throws a ValueError if ↵willmcgugan2010-10-311-0/+2
| | | | | | file_factory is not callable git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@514 67cdc799-7952-0410-af00-57a81ceafa0f
* MemoryFS: makedir("",allow_recreate=True) should succeedrfkelly02010-10-201-1/+1
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@506 67cdc799-7952-0410-af00-57a81ceafa0f
* MemoryFS: include S_IFDIR or S_IFREG in st_moderfkelly02010-10-201-2/+3
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@504 67cdc799-7952-0410-af00-57a81ceafa0f
* add test case for copying files from outside the FSrfkelly02010-10-041-0/+8
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@470 67cdc799-7952-0410-af00-57a81ceafa0f
* raise ResourceInvalidError when open() is called on a directoryrfkelly02010-09-271-1/+3
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@441 67cdc799-7952-0410-af00-57a81ceafa0f
* Potential fix for issue opening memory fileswillmcgugan2010-08-151-2/+3
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@414 67cdc799-7952-0410-af00-57a81ceafa0f
* Modified listdir and walk to take callables in addition to wildcardswillmcgugan2010-07-111-6/+4
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@381 67cdc799-7952-0410-af00-57a81ceafa0f
* Added better zip exceptions, and added __all__ to core classeswillmcgugan2010-07-101-4/+3
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@378 67cdc799-7952-0410-af00-57a81ceafa0f
* Stupid last minute bugwillmcgugan2010-06-201-1/+1
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@373 67cdc799-7952-0410-af00-57a81ceafa0f
* Fixed a few issues that had accumulated in Google Code, bumped the version ↵willmcgugan2010-06-201-5/+2
| | | | | | up to 0.3.0 git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@372 67cdc799-7952-0410-af00-57a81ceafa0f
* Mostly doc changes, and some pedantic pep-8 tweakswillmcgugan2010-06-181-5/+4
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@364 67cdc799-7952-0410-af00-57a81ceafa0f
* Added support for xattr to MemoryFilewillmcgugan2010-06-171-8/+90
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@356 67cdc799-7952-0410-af00-57a81ceafa0f
* Some fixes to improve fuse supportwillmcgugan2010-06-171-8/+28
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@355 67cdc799-7952-0410-af00-57a81ceafa0f
* add modified_time and accessed_time to MemoryFS file/dir inforfkelly02010-04-061-2/+11
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@339 67cdc799-7952-0410-af00-57a81ceafa0f
* Some fixes for Python2.5 compatibilitywillmcgugan2010-02-181-1/+1
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@327 67cdc799-7952-0410-af00-57a81ceafa0f
* ensure that rename() raises ParentDirectoryMissingError when appropriaterfkelly02010-02-161-0/+2
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@326 67cdc799-7952-0410-af00-57a81ceafa0f
* cross-directory rename() support for MemoryFSrfkelly02010-01-151-15/+12
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@319 67cdc799-7952-0410-af00-57a81ceafa0f
* A few tweaks and fixeswillmcgugan2010-01-071-6/+5
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@317 67cdc799-7952-0410-af00-57a81ceafa0f
* fix typo "syncronise" => "synchronize"rfkelly02010-01-071-2/+2
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@314 67cdc799-7952-0410-af00-57a81ceafa0f
* Fixed dumb errorwillmcgugan2010-01-041-1/+1
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@313 67cdc799-7952-0410-af00-57a81ceafa0f
* More doc tweakswillmcgugan2010-01-021-1/+1
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@312 67cdc799-7952-0410-af00-57a81ceafa0f
* Documentation, fixes, A ReadOnlyFS wrapper and a plain old FTP FS classwillmcgugan2010-01-011-3/+12
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@309 67cdc799-7952-0410-af00-57a81ceafa0f
* FS.rename: remove requirment that src and dst be in the same dirrfkelly02009-12-171-3/+0
| | | | | | | | Most filesystem seem to support moving between different directories, and it's really inconvenient to have to break out os.rename() to achieve this. git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@299 67cdc799-7952-0410-af00-57a81ceafa0f
* Fixed issue with using copydir to copy to the root of a memoryfswillmcgugan2009-11-261-2/+2
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@287 67cdc799-7952-0410-af00-57a81ceafa0f
* support for ResourceLockedError on Windowsrfkelly02009-11-231-2/+2
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@279 67cdc799-7952-0410-af00-57a81ceafa0f
* insist on unicode paths throughoutrfkelly02009-11-201-0/+3
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@272 67cdc799-7952-0410-af00-57a81ceafa0f
* some error-handling simplificationsrfkelly02009-06-151-248/+196
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/branches/rfk-ideas@170 67cdc799-7952-0410-af00-57a81ceafa0f
* Rename 'helpers' to 'path'.rfkelly02009-06-041-2/+2
| | | | | | | Split tests up into several smaller modules git-svn-id: http://pyfilesystem.googlecode.com/svn/branches/rfk-ideas@152 67cdc799-7952-0410-af00-57a81ceafa0f
* remove "if __main__" stuff from most modulesrfkelly02009-06-031-31/+0
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/branches/rfk-ideas@151 67cdc799-7952-0410-af00-57a81ceafa0f
* memortyfs compatability with latest test suiterfkelly02009-05-051-76/+82
| | | | git-svn-id: http://pyfilesystem.googlecode.com/svn/branches/rfk-ideas@131 67cdc799-7952-0410-af00-57a81ceafa0f
* Work in progress with an FS->Fuse adapter. Added a default implementation of ↵willmcgugan2009-03-081-11/+43
| | | | | | xattr to base.py, fixed some issues in memoryfs git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@120 67cdc799-7952-0410-af00-57a81ceafa0f