Add db_stat function
Improved local folder handling in case of remote directory download
Improved local folder handling in case of directory move
First commit