Removed getDirectory method