FOR-59 : some small changes for the filedepot_main() function so that we can call it from the code.