added support for other file systems' spearator
tried to implement algorithm to perform test