Create a Python script that will recursively get file information from a given path on the client. The path can be given as an argument in the script. The script should work for both Linux and Windows environments. The file information will be put into a list of JSON objects containing the filename, path, and file size (in bytes). This JSON content will then be sent via POST to the following test endpoint:https://jsonplaceholder.typicode.com/posts
Please use Python 2.7 for this, you can use any libraries you want to assist with getting the file info and making the HTTP call.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here