Recent

Author Topic: Problem accessing files with long path (on Linux)  (Read 2637 times)

Alberto_M

  • Newbie
  • Posts: 2
Problem accessing files with long path (on Linux)
« on: July 29, 2014, 09:45:45 am »
Hi,

I have a problem with files having a long path (more than 256 characters).

The maximum length of the path depends on the operative system, on Windows the value of the global constant MAX_PATH is 260 and everything is fine. Now, the problem is that Linux systems should not have limitations on path length, indeed I found that on Linux the MAX_PATH is set to 4096, but yet I can't access files with a path length higher than 256.

For instance, I can use AssignFile() but then when I go trough Reset() a file not found exception is raised. I actually tried also to use FileExists, and it returns false, so it seems that the file is not recognized.

Am I missing something? How can I overcome this issue? Thanks in advance for your help

Alberto

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: Problem accessing files with long path (on Linux)
« Reply #1 on: July 29, 2014, 10:10:07 am »
AFAIK this is fixed in fpc trunk.
Issue #24885

Bart

Alberto_M

  • Newbie
  • Posts: 2
Re: Problem accessing files with long path (on Linux)
« Reply #2 on: July 29, 2014, 11:03:14 am »
Thanks! I will check it right now.

andrewop

  • Newbie
  • Posts: 2
Re: Problem accessing files with long path (on Linux)
« Reply #3 on: August 26, 2014, 08:00:00 pm »
Hello

Long path tool is the best solution for your problem. try it and solve your problem

________________________________ ::)

 

TinyPortal © 2005-2018