0

so I got this python script that removes duplicated files and sort them into folders corresponding to their extension . what I want to do is when someone uploads a folder to the website than clicks a button the python script is called and starts , it creates a folder to store the sorted files for users to later download those files.

Flyroxx
  • 13
  • 5
  • 1
    check similar question here https://stackoverflow.com/questions/32288722/call-python-function-from-js – moustafa Jun 05 '21 at 21:51
  • 1
    Does this answer your question? [Call python function from JS](https://stackoverflow.com/questions/32288722/call-python-function-from-js) – Pawan Bishnoi Jun 06 '21 at 04:22

1 Answers1

1

Since javascript is client side, you'd need to set up some sort of backend that can handle the data sent by the user and then sorts it. moustafa linked a very good explanation, I reccomend reading that and you should be sorted.

Rexy
  • 121
  • 9
  • Thank you for ur reply, i'll take a look into it , much appreciated :) – Flyroxx Jun 07 '21 at 07:25
  • Hello , so i've been going at it the whole day but i didn't manage to figure it out , does the linked post from moustafa works when the function is calling other functions? – Flyroxx Jun 07 '21 at 20:29