Commit ccd1eec
authored
Recreating Directory Structure: The process_directory function calculates the relative path of each PHP file and creates the corresponding subdirectory in the output directory. Adjusting the Obfuscation Function: The obfuscate_php function now creates the target directory if it doesn't exist, ensuring that the directory structure is maintained. With these changes, the script will replicate the directory structure of the input project in the output directory, maintaining the same hierarchy for obfuscated files.
1 parent 7e9ddc7 commit ccd1eec
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
71 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
72 | 79 | | |
73 | 80 | | |
74 | 81 | | |
| |||
0 commit comments