Three Directories

Job ID: 33448731

Budget: $10 – $30 CAD

three directories
directory A (imm) .mp3
directory B (artimm) .jpg
directory C (repository) .jpg

Action
When deleting a file from directory A (imm), the same name file in directory B (artimm) is moved to directory C (repository)

When adding a file to directory A (imm), the same name file in directory C (repository) is moved to directory B (artimm).

The files naming convention is partone - parttwo.mp3 (imm)
We read only from "partone" of the name of the file for comparison found in directory A (imm).

Process...
When running a single php script which looks in target “directory A (imm).mp3” compares to “directory B (artimm) .jpg” if same name partone of the file name is found do nothing, if there is a mismatch attempt to copy matches from directory C (repository) .jpg to “directory B (artimm) ”.

Subsequently, if directory A (imm).mp3 or directory B (artimm) are adjusting so that directory B files not found are sent back to directory C (repository) .
Related categories: PHP JavaScript AJAX