Skip to content

Commit b7b22ae

Browse files
authored
Merge pull request #8 from WhiteHusky/other-access
Added option to allow other users to access mount
2 parents 88168d8 + ef1ba05 commit b7b22ae

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

simple_httpfs/__main__.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ def main():
4646
'--aws-profile',
4747
default=None,
4848
type=str)
49+
50+
parser.add_argument(
51+
'--allow-other',
52+
action='store_true',
53+
default=False,
54+
help='Allow other users to access this fuse')
4955

5056
parser.add_argument(
5157
'-l', '--log',
@@ -84,9 +90,11 @@ def main():
8490
schema: {schema}
8591
mountpoint: {mountpoint}
8692
foreground: {foreground}
93+
allow others: {allow_other}
8794
""".format(schema=schema,
8895
mountpoint=args['mountpoint'],
89-
foreground=args['foreground'])
96+
foreground=args['foreground'],
97+
allow_other=args['allow_other'])
9098
print(start_msg, file=sys.stderr)
9199

92100
fuse = FUSE(
@@ -100,7 +108,8 @@ def main():
100108
logger = logger
101109
),
102110
args['mountpoint'],
103-
foreground=args['foreground']
111+
foreground=args['foreground'],
112+
allow_other=args['allow_other']
104113
)
105114

106115

0 commit comments

Comments
 (0)