search for: pathremovebackslash

Displaying 2 results from an estimated 2 matches for "pathremovebackslash".

2005 Aug 19
2
File.basename issue
...orking it, I still can''t get one test to pass. Specifically, multiple trailing slashes. Here''s the test that shows the issue: assert_equal("bar", File.basename("C:/foo/bar\\\\")) Instead of "bar", I end up with "bar\" because I only call PathRemoveBackslash() once. I figured I could solve it with something like this: while(PathRemoveBackslash(path)){} But that doesn''t work. I thought you could just call this until you hit NULL, but I can''t seem to make it work. I suspect the answer is easy, I''m just not seeing it for so...
2005 Sep 08
0
win32-file and File.basename edge case
Hi all, I noticed in win32-file 0.4.4 that File.basename("") hangs on my Windows XP Pro box at work, but not at home. Does anyone else see this behavior? I can only speculate that the behavior of PathRemoveBackslash() changed at some point in the lifecycle of VC++ 7. Dan