Regulate file path