I spent an hour writing a file manager myself. Before writing, I thought it was difficult to write, but it is actually the operation of File. . .
So I wrote the investigation, and nothing else was written, it was meaningless.
Difficulty factor: 0
File manager core code
File[] files = file.listFiles()
Yes, you read that right, there is only one line of code at the core. Knowing this line of code is equivalent to writing out an entire file manager. It's so boring.
running result
github address
https://github.com/xubinhong/FileManager