create buffer and corresponding file in cur dir.