Skip to content

Commit ca4c4ba

Browse files
author
Kazuki Suzuki Przyborowski
authored
Add files via upload
1 parent 557858e commit ca4c4ba

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

phpcatfile.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,6 @@ function PHPCatFile($infiles, $outfile, $verbose=false) {
152152
fclose($catfp);
153153
return true; }
154154

155-
function PyCatFile($infiles, $outfile, $verbose=false) {
156-
return PHPCatFile($infiles, $outfile, $verbose); }
157-
158155
function PHPCatToArray($infile, $seekstart=0, $seekend=0, $listonly=false) {
159156
$infile = RemoveWindowsPath($infile);
160157
$catfp = fopen($infile, "rb");
@@ -217,9 +214,6 @@ function PHPCatToArray($infile, $seekstart=0, $seekend=0, $listonly=false) {
217214
fclose($catfp);
218215
return $phpcatlist; }
219216

220-
function PyCatToArray($infile, $seekstart=0, $seekend=0, $listonly=false) {
221-
return PHPCatToArray($infile, $seekstart, $seekend, $listonly); }
222-
223217
function PHPCatArrayIndex($infile, $seekstart=0, $seekend=0, $listonly=false) {
224218
$infile = RemoveWindowsPath($infile);
225219
$listcatfiles = PHPCatToArray($infile, $seekstart, $seekend, false);
@@ -265,9 +259,6 @@ function PHPCatArrayIndex($infile, $seekstart=0, $seekend=0, $listonly=false) {
265259
$lcfi = $lcfi + 1; }
266260
return $phpcatarray; }
267261

268-
function PyCatArrayIndex($infile, $seekstart=0, $seekend=0, $listonly=false) {
269-
return PHPCatArrayIndex($infile, $seekstart, $seekend, $listonly); }
270-
271262
function PHPUnCatFile($infile, $outdir=null, $verbose=False) {
272263
$infile = RemoveWindowsPath($infile);
273264
if($outdir!==null) {
@@ -301,9 +292,6 @@ function PHPUnCatFile($infile, $outdir=null, $verbose=False) {
301292
$lcfi = $lcfi + 1; }
302293
return true; }
303294

304-
function PyUnCatFile($infile, $outdir=null, $verbose=False) {
305-
return PHPUnCatFile($infile, $outdir, $verbose); }
306-
307295
function PHPCatListFiles($infile, $seekstart=0, $seekend=0, $verbose=false) {
308296
$infile = RemoveWindowsPath($infile);
309297
$listcatfiles = PHPCatToArray($infile, $seekstart, $seekend, true);
@@ -353,7 +341,4 @@ function PHPCatListFiles($infile, $seekstart=0, $seekend=0, $verbose=false) {
353341
print($permissionstr." ".$listcatfiles[$lcfi]['fuid']."/".$listcatfiles[$lcfi]['fgid']." ".str_pad($listcatfiles[$lcfi]['fsize'], 15, " ", STR_PAD_LEFT)." ".gmdate('Y-m-d H:i', $listcatfiles[$lcfi]['fmtime'])." ".$printfname."\n"); }
354342
$lcfi = $lcfi + 1; }
355343
return true; }
356-
357-
function PyCatListFiles($infile, $seekstart=0, $seekend=0, $verbose=false) {
358-
return PHPCatListFiles($infile, $seekstart, $seekend, $verbose); }
359344
?>

pycatfile.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,6 @@ def PyCatFile(infiles, outfile, verbose=False):
205205
catfp.close();
206206
return True;
207207

208-
def PHPCatFile(infiles, outfile, verbose=False):
209-
return PyCatFile(infiles, outfile, verbose);
210-
211208
if(tarsupport is True):
212209
def PyCatFromTarFile(infile, outfile, verbose=False):
213210
infile = RemoveWindowsPath(infile);
@@ -288,10 +285,6 @@ def PyCatFromTarFile(infile, outfile, verbose=False):
288285
tarinput.close();
289286
return True;
290287

291-
if(tarsupport is True):
292-
def PHPCatFromTarFile(infile, outfile, verbose=False):
293-
return PyCatFromTarFile(infile, outfile, verbose);
294-
295288
def PyCatToArray(infile, seekstart=0, seekend=0, listonly=False):
296289
infile = RemoveWindowsPath(infile);
297290
catfp = open(infile, "rb");
@@ -355,9 +348,6 @@ def PyCatToArray(infile, seekstart=0, seekend=0, listonly=False):
355348
catfp.close();
356349
return pycatlist;
357350

358-
def PHPCatToArray(infile, seekstart=0, seekend=0, listonly=False):
359-
return PyCatToArray(infile, seekstart, seekend, listonly);
360-
361351
def PyCatArrayIndex(infile, seekstart=0, seekend=0, listonly=False):
362352
infile = RemoveWindowsPath(infile);
363353
listcatfiles = PyCatToArray(infile, seekstart, seekend, listonly);
@@ -405,9 +395,6 @@ def PyCatArrayIndex(infile, seekstart=0, seekend=0, listonly=False):
405395
lcfi = lcfi + 1;
406396
return pycatarray;
407397

408-
def PHPCatArrayIndex(infile, seekstart=0, seekend=0, listonly=False):
409-
return PyCatArrayIndex(infile, seekstart, seekend, listonly);
410-
411398
def PyUnCatFile(infile, outdir=None, verbose=False):
412399
infile = RemoveWindowsPath(infile);
413400
if(outdir is not None):
@@ -445,9 +432,6 @@ def PyUnCatFile(infile, outdir=None, verbose=False):
445432
lcfi = lcfi + 1;
446433
return True;
447434

448-
def PHPUnCatFile(infile, outdir=None, verbose=False):
449-
return PyUnCatFile(infile, outdir, verbose);
450-
451435
def PyCatListFiles(infile, seekstart=0, seekend=0, verbose=False):
452436
infile = RemoveWindowsPath(infile);
453437
logging.basicConfig(format="%(message)s", stream=sys.stdout, level=logging.DEBUG);
@@ -490,9 +474,6 @@ def PyCatListFiles(infile, seekstart=0, seekend=0, verbose=False):
490474
lcfi = lcfi + 1;
491475
return True;
492476

493-
def PHPCatListFiles(infile, seekstart=0, seekend=0, verbose=False):
494-
return PyCatListFiles(infile, seekstart, seekend, verbose);
495-
496477
if __name__ == '__main__':
497478
should_extract = False;
498479
should_create = True;

0 commit comments

Comments
 (0)