mirror of
https://github.com/9001/copyparty.git
synced 2025-10-04 10:19:21 +02:00
make xvol and xdev apply at runtime (closes #24):
* when accessing files inside an xdev volume, verify that the file exists on the same device/filesystem as the volume root * when accessing files inside an xvol volume, verify that the file exists within any volume where the user has read access
This commit is contained in:
parent
83178d0836
commit
544e0549bc
7 changed files with 142 additions and 21 deletions
10
.vscode/launch.py
vendored
10
.vscode/launch.py
vendored
|
@ -30,9 +30,17 @@ except:
|
|||
|
||||
argv = [os.path.expanduser(x) if x.startswith("~") else x for x in argv]
|
||||
|
||||
sfx = ""
|
||||
if len(sys.argv) > 1 and os.path.isfile(sys.argv[1]):
|
||||
sfx = sys.argv[1]
|
||||
sys.argv = [sys.argv[0]] + sys.argv[2:]
|
||||
|
||||
argv += sys.argv[1:]
|
||||
|
||||
if re.search(" -j ?[0-9]", " ".join(argv)):
|
||||
if sfx:
|
||||
argv = [sys.executable, sfx] + argv
|
||||
sp.check_call(argv)
|
||||
elif re.search(" -j ?[0-9]", " ".join(argv)):
|
||||
argv = [sys.executable, "-m", "copyparty"] + argv
|
||||
sp.check_call(argv)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue