summaryrefslogtreecommitdiff
path: root/module/utils/filename.mdwn
blob: 6c97e46f02756ff6d9f4aeccaaa74449faa345e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[[!meta title="Module:utils/filename"]]
[[!meta author="James Bursa"]]
[[!meta date="2011-01-09T22:36:41Z"]]


[[!toc]] Central method of
obtaining unique filenames.

Prefix
------

`filename_`

Depends on
----------

-   [[Module:utils/log|module/utils/log]]
-   [[Module:utils/utils|module/utils/utils]]

Description
-----------

This module allocates unique filenames in a tree in NetSurf's cache
directory. Files are arranged in a tree 4 levels deep with up to 64
files per lowest level directory.

Performance appears to be O(number of files).

Files
-----

utils/filename.h
:   Interface
utils/filename.c
:   Implementation

[[!inline raw=yes pages="Module:Index"]]