
| Current Path : /var/www/html/12park/web/sites/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/12park/web/sites/read_from_50.py |
import os,re,sys,glob
def cp (text,target):
datei = ( glob.glob("/home/cgabriel/50*/1400*/*/" + text) +
glob.glob("/home/cgabriel/50*/1400*/*/*/" + text) +
glob.glob("/home/cgabriel/50*/1400*/*/*/*/" + text) ) [0]
if os.path.isdir(datei):
m = re.search(r"^(.*)[\\\/](.*)$",datei)
if not m:
return(0)
target = re.sub(r"\/\/","/",target + "/" + m.group(2))
os.system("cp " + datei + " " + target)
print("cp " + datei + " " + target)
os.system("chown www-data:ift " + target)
os.system("chmod 775 " + target)
cp("bedienungsanleitung_komplett.pdf", "12park.de/files/bedienungsanleitung_p02a.pdf")
cp("vertragsstrafe.pdf", "12park.de/files/")
cp("vertragsstrafe_bmb.pdf", "12park.de/files/")
cp("antrag_neue_geraete_signatur.pdf", "12park.de/files/")