# Find File(s) - not handling long paths

**URL:** <https://www.finalbuilder.com/forums/t/find-file-s-not-handling-long-paths/2747>\
**Category:** Bugs\
**Created:** [January 3, 2007, 1:48am UTC](https://www.finalbuilder.com/forums/t/find-file-s-not-handling-long-paths/2747 "2007-01-03T01:48:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [January 3, 2007, 1:48am UTC](https://www.finalbuilder.com/forums/t/find-file-s-not-handling-long-paths/2747/1 "2007-01-03T01:48:36Z")

</div>

I came across a strange error in FinalBuilder when i was trying to find an file.  
  
When trying to find a specific file in the following folder: C:\FinalBuilder\Gilde\WorkingFolder\Vault\Applications\Gilde\Dev\SW\Mercatus\Common\2.0\Data   
  
I got an message that no file was found, even if the current folder have lots of file in it(and also the specified file), I also tried to find _._ in the same folder but same result.  
  
However if i removed the last folder and did the same search there it works fine.  
  
So it seems that there are a “retriction” on how long a path can be. (It fails if the path is longer than approx. 90 chars)  
  
Is there a fix for this or have anyone else gotten the same error?

---

<div class="post-metadata">

**Author:** ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)\
**Post date:** [January 3, 2007, 11:43am UTC](https://www.finalbuilder.com/forums/t/find-file-s-not-handling-long-paths/2747/2 "2007-01-03T11:43:48Z")

</div>

Hi Magne,  
  
The Find File(s) action will handle paths up to 255 characters, so I don’t think it would be a length issue.   
  
I’ve noticed though, that if the path does not end with a ‘’ it will fail, possibly the reason why its not working in this case. I’ll put a fix in to check for trailing slashes.   
  
Hopefully this helps 🙂  
  
Regards,  
Paul

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [January 4, 2007, 10:10am UTC](https://www.finalbuilder.com/forums/t/find-file-s-not-handling-long-paths/2747/3 "2007-01-04T10:10:41Z")

</div>

Hello Paul, thank you for the quick response.  
  
My path did not end with a ‘’, but it did not solve it when I added it.  
  
To specify a little more here is what I am doing.I have a variable called project that holds my path and vbproj file (i.e. c:\test\test.vbproj)  
  
I then have a variable to store only the path for my vbproj file.(when debuging that variable is containing a trailing ‘’.   
  
I use path manipulation to extract the folderpath from my project variable, and also to get the project file name. (I also use it to remove the file extention so that i get my project name (without .vproj)  
  
So I now have several variables:  
1. project (c:\test\test.vbproj)  
2. projectpath (c:\test)  
3. projectname (test.vbproj), first then i use path manipulation to remove the file extention.  
4. projectname (test)  
  
I then use text find to check that projectname starts with test.  
  
Then i use Find file(s) to find %projectname%.dll in the %projectpath%\bin\ folder.   
  
This is where Finalbuilder fails even if test.dll exists in c:\test\bin\<br\>  
(i have used short paths here, but in my code it only fails if the path is long.)  
  
Regards  
Magne

---

<div class="post-metadata">

**Author:** ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)\
**Post date:** [January 4, 2007, 11:35am UTC](https://www.finalbuilder.com/forums/t/find-file-s-not-handling-long-paths/2747/4 "2007-01-04T11:35:27Z")

</div>

Hi Magne,  
  
Thanks for the detailed information, I was able to find the bug and a new build will be available soon.  
  
Regards,  
Paul.

---

<div class="post-metadata">

**Author:** ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)\
**Post date:** [January 5, 2007, 1:58am UTC](https://www.finalbuilder.com/forums/t/find-file-s-not-handling-long-paths/2747/5 "2007-01-05T01:58:10Z")

</div>

Hi Magne,  
  
Here is the new build: [https://www.finalbuilder.com/downloads/finalbuilder/500/FB500\_92.exe](https://www.finalbuilder.com/downloads/finalbuilder/500/FB500_92.exe)  
  
Regards,  
Paul

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [January 5, 2007, 11:20am UTC](https://www.finalbuilder.com/forums/t/find-file-s-not-handling-long-paths/2747/6 "2007-01-05T11:20:23Z")

</div>

Hi Paul,  
  
I have installed the new build and it is working now. Thank you for the quick fix.  
  
Regards  
Magne
