TortoiseSVN on Windows - checkout error "...is not a valid as filename in directory"

10,380

It might be caused by the case insensitive filesystem in Windows (NTFS/FAT)

Try:

svn ls file:///path/to/repositories/project/site/public/www/images/auto/audi/|grep -i '120045_audi_A3__5858_t45e444.jpg'

And be sure it only outputs a single line.

Share:
10,380

Related videos on Youtube

tobia.zanarella
Author by

tobia.zanarella

Updated on September 18, 2022

Comments

  • tobia.zanarella
    tobia.zanarella over 1 year

    I have a project under SVN control. SVN and repository reside on a Linux Debian 6 server. On the server I have a working copy as well (for Apache to show the website for test purposes).

    The checkout on the server (svn co /path/to/projectworkingcopy file:///path/to/repositories/project -m "First") worked like a charm with no problems at all.

    On TortoiseSVN, the checkout starts and imports some files, then compains throwing an error on a filename; the error is like this:

    'foldername/file_name_123_abc.jpg' is not valid as filename in directory 'C:\path\to\working\copy\project\dira\dirb'
    

    And then it says Completed! without any other file being imported.

    I searched on the internet but no solutions fit my problem. The folder that Tortoise can't checkout ha NO spaces, there are no spaces on filename, there are no files with dots (.) at the end of their name.

    And, again: on the server the checkout had NO problems at all. That file exists on the server's working copy.

    Update: I tried to checkout exluding the folder 'foldername' and is going well. Anyhow there are no spaces on the complete path to foldername, so I really can't understand why I get this error. And, I obviously NEED that folder!

    Update: real path of one of the files causing errors:

    "/var/project/site/public/www/images/auto/audi/120045_audi_A3__5858_t45e444.jpg"
    

    What can I do? Thank you.

    • Admin
      Admin about 10 years
      doublecheck for spaces anywhere in path :)
    • Admin
      Admin about 10 years
      @dusan.bajic there are no spaces AT ALL on the path.. That's the why I cannot understand why I get this error
    • Admin
      Admin about 10 years
      try another SVN client, to isolate problem between Tortoise and Windows itself
    • Admin
      Admin about 10 years
      1. The question has to be asked at StackOverflow. 2. Show us the exact REAL path to the file. Some characters in the path are considered invalid on Windows while Linux accepts them. I guess we can narrow this down if we know the affected path.
  • mliebelt
    mliebelt almost 8 years
    Had a similar strange thing, where the directory name (on the server) ended with a blank. Valid for Linux, not for Windows.