Navigation

Operators and Keywords

Function List:

C++ API

: current_state = recycle ()
: old_state = recycle (new_state)

Query or set the preference for recycling deleted files.

When recycling is enabled, commands which would permanently erase files instead move them to a temporary location (such as the directory labeled Trash).

Programming Note: This function is provided for MATLAB compatibility, but recycling is not implemented in Octave. To help avoid accidental data loss an error will be raised if an attempt is made to enable file recycling.

See also: delete, rmdir.

Package: octave