Difference between revisions of "Wipe cache.m"
(Created page with "{{DISPLAYTITLE:wipe_cache.m}} __NOTOC__ Forces a wipe of the Spinach cache folder. ==Syntax== wipe_cache(spin_system) ==Arguments== spin_system - Spinach object wi...") |
(Sync syntax/arguments/outputs with current Spinach source) |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:wipe_cache.m}} __NOTOC__ | {{DISPLAYTITLE:wipe_cache.m}} __NOTOC__ | ||
| + | |||
Forces a wipe of the Spinach cache folder. | Forces a wipe of the Spinach cache folder. | ||
==Syntax== | ==Syntax== | ||
| − | + | wipe_cache(spin_system) | |
==Arguments== | ==Arguments== | ||
| − | + | spin_system - Spinach object with information (stored | |
in spin_system.sys.scratch) about the cache | in spin_system.sys.scratch) about the cache | ||
folder location; use bootstrap() to get the | folder location; use bootstrap() to get the | ||
| Line 15: | Line 16: | ||
==Outputs== | ==Outputs== | ||
| − | + | an attempt is made to delete all all Spinach-specific | |
| − | + | files in spin_system.sys.scratch; this would fail qui- | |
| − | + | etly if file system permissions are insufficient | |
| + | |||
| + | ilya.kuprov@weizmann.ac.il | ||
==See also== | ==See also== | ||
| + | |||
[[Kernel_utilities#Housekeeping_functions|Housekeeping functions]] | [[Kernel_utilities#Housekeeping_functions|Housekeeping functions]] | ||
''Version 2.11, authors: [[Ilya Kuprov]]'' | ''Version 2.11, authors: [[Ilya Kuprov]]'' | ||
Revision as of 15:06, 5 April 2026
Forces a wipe of the Spinach cache folder.
Syntax
wipe_cache(spin_system)
Arguments
spin_system - Spinach object with information (stored
in spin_system.sys.scratch) about the cache
folder location; use bootstrap() to get the
default object
Outputs
an attempt is made to delete all all Spinach-specific
files in spin_system.sys.scratch; this would fail qui-
etly if file system permissions are insufficient
ilya.kuprov@weizmann.ac.il
See also
Version 2.11, authors: Ilya Kuprov