|
I'm curious as to your method of string concatenation. What inspired the concatenation via a list?
The best way to concatenate string representations of paths is via os.path.join. The function is kind enough to decide whether or not it needs to add a slash in the joined string, so os.path.join("/home/foo", "file.txt") and os.path.join("/home/foo/", "file.txt") both give you "/home/foo/file.txt".
|