This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Standard library imports. | |
from socketserver import ThreadingMixIn | |
from http.server import HTTPServer, SimpleHTTPRequestHandler | |
import sys | |
import json | |
import os | |
from os.path import (join, exists, dirname, abspath, isabs, sep, splitext, | |
isdir, basename, expanduser, split, splitdrive) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
## Transform set_metadata into set_perm (for recoveries that don't support the former) | |
# Usage: metadata_to_perm.py file | |
import sys, re | |
try: | |
file = open(sys.argv[1]) | |
except: | |
print('unable to open file') | |
exit(1) |