Lately he has discovered how to password protect files in phones which doesn't have any support to password protect a file.
Here's his procedure to password protect a file.
He creates 26 folders with names from A to Z .
Then he creates another 26 folders in each of folders he created in step 1 .
He then chooses a 2 letter password and then stores the file he want to password protect by going to the corresponding location. For example, if he chooses his password as BZ then the location of the file stored would be /B/Z .
Using the following trick I have stored a file for you to find out. Find out the file in his memory card and you will get the answer to this problem.
Request and Clarification
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Nice problem! I wrote a function that recursively looks for the file. It makes use of python's os module.
The function
returns a list of all things in a folder(files and folders).
The function
checks if a given thing is either a file or a directory.
The function
is pretty straight forward,it first checks if the file is in the Parent_Folder. If it is not ,then it recursively checks each sub-directory and returns the path of the file once it is found.