How to use exclude directory or file