summary refs log tree commit diff stats
path: root/tests/tuples/tuint_tuple.nim
Commit message (Expand)AuthorAgeFilesLines
* Adds test file, for bug #1986Joseph Turner2015-04-091-0/+10
0100 new segfaults.nim stdlib module works on Windows' href='/ahoang/Nim/commit/lib/pure/segfaults.nim?h=devel&id=cdebcf2
# Compatible since ranger 1.7.0 (git commit c82a8a76989c)
#
# This plugin hides the directories "/boot", "/sbin", "/proc" and "/sys" unless
# the "show_hidden" option is activated.

# Save the original filter function

from __future__ import (absolute_import, division, print_function)

import ranger.container.directory


ACCEPT_FILE_OLD = ranger.container.directory.accept_file

HIDE_FILES = ("/boot", "/sbin", "/proc", "/sys")


# Define a new one
def custom_accept_file(fobj, filters):
    if not fobj.fm.settings.show_hidden and fobj.path in HIDE_FILES:
        return False
    return ACCEPT_FILE_OLD(fobj, filters)


# Overwrite the old function
ranger.container.directory.accept_file = custom_accept_file
ass='alt'>
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84