waitReady method in file object