Adaptive copy function
Ported file path to array list