|
41 | 41 | from .api import ApiIdentGetterResource |
42 | 42 | from .query import get_query |
43 | 43 | from .web_utils import ProjectConverter, IdentConverter, validate_version, validate_project, validate_ident, \ |
44 | | - get_elixir_version_string, get_elixir_repo_url, RequestContext, Config |
| 44 | + get_elixir_version_string, get_elixir_repo_url, RequestContext, Config, DirectoryEntry |
45 | 45 | from .diff import format_diff |
46 | 46 |
|
47 | 47 | VERSION_CACHE_DURATION_SECONDS = 2 * 60 # 2 minutes |
@@ -649,14 +649,6 @@ def get_ident_url(ident, ident_family=None): |
649 | 649 |
|
650 | 650 | return html_code_block, html_code_other_block |
651 | 651 |
|
652 | | -# Represents a file entry in git tree |
653 | | -# type : either tree (directory), blob (file) or symlink |
654 | | -# name: filename of the file |
655 | | -# path: path of the file, path to the target in case of symlinks |
656 | | -# url: absolute URL of the file |
657 | | -# size: int, file size in bytes, None for directories and symlinks |
658 | | -DirectoryEntry = namedtuple('DirectoryEntry', 'type, name, path, url, size') |
659 | | - |
660 | 652 | # Returns a list of DirectoryEntry objects with information about files in a directory |
661 | 653 | # base_url: file URLs will be created by appending file path to this URL. It shouldn't end with a slash |
662 | 654 | # tag: requested repository tag |
|
0 commit comments