Fix caching issue
Add sync.get_dir and sync.get_file methods