]> git.phdru.name Git - ppu.git/blob - docs/index.rst
Docs(index): rm.py can recursively remove directories
[ppu.git] / docs / index.rst
1 .. ppu documentation master file, created by
2    sphinx-quickstart on Sat Apr 15 20:37:34 2017.
3    You can adapt this file completely to your liking, but it should at least
4    contain the root `toctree` directive.
5
6 Portable Python Utilities
7 =========================
8
9 .. toctree::
10    :maxdepth: 2
11    :caption: Contents:
12
13    install
14    news
15
16 .. highlight:: none
17
18 Command line
19 ------------
20
21 cmp.py
22 ~~~~~~
23
24 Compare two files.
25
26 Usage::
27
28     cmp.py file1 file2
29
30 remove-old-files.py
31 ~~~~~~~~~~~~~~~~~~~
32
33 Remove old files. It's a portable replacement for
34 `find start_dir -type f -mtime +31 -delete`.
35
36 Usage::
37
38     remove-old-files.py [-e] -o days start_dir
39
40 Options::
41
42     -e, --empty-dirs
43                            remove empty directories
44     -o days, --older days
45                            remove files older than this number of days;
46                            this is a required option
47
48 rm.py
49 ~~~~~
50
51 Remove files or directories.
52
53 Usage::
54
55     rm.py [-r] name1 [name2...]
56
57 Options::
58
59     -r, --recursive
60                            recursively remove directories
61
62 which.py
63 ~~~~~~~~
64
65 Find a program in PATH and print full path to it.
66
67 Usage::
68
69     which.py program
70
71 Indices and tables
72 ==================
73
74 * :ref:`genindex`
75 * :ref:`modindex`
76 * :ref:`search`