cleanup and optimize file system functions

cleanup the functions after adding better User::getRealFile()
adapt createDirectory for geting the relative folder from User
optimize removeFolder
optimize copyFolder