Isilon

Last reply by 08-30-2021 Solved
Start a Discussion
2 Bronze
2 Bronze
578

Getting content of directory with path > 8198 using OneFS APIs

Hi, 

Below is the URI to get the content(files/folders information) of the directory

GET /namespace/access_point/dir_path

As per documentation OneFS API supports a maximum URI length of 8,198 characters.

Is there any solution get the content of the directory with path > 8192?

Thanks,

Sadhana

 

 

Labels (3)
Solution (1)

Accepted Solutions
530

Turns out the access point trick doesn't do it -- so the total path limit of 1024 always applies...

View solution in original post

Replies (3)
4 Beryllium
563

OneFS by itself accepts paths lengths of up to 1024 bytes, so in the API an URI length of 8192 is more than sufficient. Yes, one can have directories deeply nested so that a file's path can be longer than 1024 -- but this file can never be accessed with its full path right from the top /ifs. Usually one would cd into some directory half way down the filesystem hierarchy first, and the access the file with a relative path from there. Or walk down directory by directory until the file in question is in the current  working directory.

As the OneFS filesystem API has no notion of a current working directory, this method cannot the applied in general.

The closest way one can get would be to define API 'access points'  (check out the API Reference Guide) for the filesytem first, so that an actual URI path will be shortened by the length of the access point path.

hth

-- Peter

531

Turns out the access point trick doesn't do it -- so the total path limit of 1024 always applies...

2 Bronze
2 Bronze
528

Thanks for the update.

Latest Solutions
Top Contributor