Theoretically there is no limit. However, the recommendation for programmers is to reserve 256 characters for path including file name. So programs might crash if you use paths longer than 256 characters. But this is not an FFS issue.
With other file systems like SFS or PFS you can use up to 107 characters for file and directory names.
Bye,
Thomas