summaryrefslogtreecommitdiff
path: root/taskflow/examples/dump_memory_backend.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove **most** usage of taskflow.utils in examplesJoshua Harlow2015-07-171-10/+4
| | | | | | | | | | It appears folks are using the taskflow.utils code in there own code-bases (likely taking it from the examples) which we do not want to encourage, so remove the usage of **most** of taskflow.utils code from the examples so that people are less likely to copy/paste/reference it. Change-Id: I0ce3c520de347e3e746e7912aa1366a515458424
* Add a new `ls_r` methodJoshua Harlow2015-06-041-1/+1
| | | | | | | | | | | | | | | | | | | Instead of having a `ls` method that when used recursively *always* returns the absolute path of items in the fake in memory storage tree and *relative* paths (when used in non-recursive mode) add a new `ls_r` method that can return absolute *or* relative paths. In the future it is highly likely that the the `ls` recursive keyword argument will be removed (so preferring and moving to the `ls_r` should occur earlier rather than later), so this also adds a debtcollector removed keyword argument decorator over the existing `ls` to ensure that users are aware of this change (as well as a adjusted docstring). Fixes bug 1458114 Change-Id: Id2a5869e94ac44679020a14297d1073d1dc2718f
* Allow ls() to list recursively (using breadth-first)Joshua Harlow2015-03-311-6/+1
| | | | | | | | | | | | Make it easier to list the contents of the full in-memory filesystem by allowing the ls() function to take a recursive keyword argument (which by default is false). This makes it easier to analyze the contents of the full in memory filesystem; saving people from creating similar code themselves. Change-Id: I573797945255cb81728e7a86b58768b848110ee7
* Add a in-memory backend dumping exampleJoshua Harlow2015-03-121-0/+83
Change-Id: Ie29735a16129cedd574e09ed06b44a98560f0d90