You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dv is a command line tool for visualizing disk data usage on systems that don't have access to a graphical environment. After scanning a directory, dv generates an interactive webpage that displays useful information about the disk's contents. This webpage is a sunburst partition layout, where each subdirectory is displayed as a portion of the scanned directory.
10
+
11
+
Hovering over a directory shows its size and percentage of the whole. dv is multiprocessed, and can be used to quickly visualize what is taking up space on a system.
12
+
13
+
Check out a [pre-generated plot](https://engineering.arm.gov/~dohnalek/dv_99c6f258f11a8f14a4d460f8e1c9fc4d/index.html?id=local).
14
+
15
+
Usage
16
+
-----------
17
+
dv has several options that can be explored with
18
+
```bash
19
+
dv --help
20
+
```
21
+
To get started as quickly as possible with a basic directory scan and plot, clone this repository, cd to the `python` directory, and run:
parser.add_argument("-u", "--unique", action="store_true", help="If passed, the 'unique' flag generates a new plot with a unique URL instead of overwriting the previous scan")
38
42
parser.add_argument("-m", "--modtime", action="store_true", help="If passed, the 'modtime' flag adds the most recent modification time of any file in each directory to the generated plot")
39
43
parser.add_argument("-f", "--fade", action="store_true", help="If passed, the 'fade' flag will make directories in the generated plot appear more opaque if their files haven't been touched for a long time")
40
-
parser.add_argument("-o", "--output", help="A directory containing the generated plot and web page will be placed on disk at the specified location, after the scan finishes, a local HTTP server will start and serve the plot")
44
+
parser.add_argument("-s", "--save", help="A directory containing the generated plot and web page will be placed on disk at the specified location, after the scan finishes")
45
+
parser.add_argument("-sh", "--save-and-host", help="The same as -s, but after scanning, dv will start a server to serve the newly generated plot")
41
46
42
47
args=parser.parse_args()
43
48
args.root=args.directory
44
49
50
+
ifargs.save_and_host:
51
+
args.save=args.save_and_host
52
+
ifargs.save:
53
+
args.save=os.path.realpath(args.save)
54
+
45
55
ifargs.root=="/":
46
56
args.root="/./"
47
57
ifargs.root.endswith("/"):
@@ -55,27 +65,6 @@ def parseArgs():
55
65
returnargs
56
66
57
67
58
-
defparseConfig():
59
-
"""Parse the file config.json found in the same directory
0 commit comments