## org.das2.util.filesystem.GitLabFileSystem

GitLab-backed FileSystem for Das2. Intended URI forms: https://git.example.edu/group/subgroup/project/-/blob/main/path/to/file.txt https://git.example.edu/group/subgroup/project/-/tree/main/path/to/dir https://git.example.edu/group/subgroup/project Internal strategy: - parse the web URL into host + projectPath + optional ref + optional repoPath - if ref is missing, query project metadata and use default_branch - list directories with /api/v4/projects/:id/repository/tree - read files with /-/raw/{ref}/{path} This was written by ChatGPT, experimenting to get a cleaner implementation of the filesystem. It is not in use.

## createGitLabFileSystem

createGitLabFileSystem( java.net.URI rootUri ) → org.das2.util.filesystem.GitLabFileSystem

### Parameters

rootUri - an URI

### Returns:

org.das2.util.filesystem.GitLabFileSystem
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getFileObject

getFileObject( String filename ) → org.das2.util.filesystem.FileObject

### Parameters

filename - a String

### Returns:

org.das2.util.filesystem.FileObject
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getRootURI

getRootURI( ) → java.net.URI

Optional convenience.

### Returns:

java.net.URI
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getSize

getSize( String filename ) → long

Optional convenience method if Das2 FileSystem has a method like this.

### Parameters

filename - a String

### Returns:

long
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## isDirectory

isDirectory( String filename ) → boolean

### Parameters

filename - a String

### Returns:

boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## listDirectory

listDirectory( String directory ) → String[]

### Parameters

directory - a String

### Returns:

java.lang.String[]
[search for examples] [view on GitHub] [view on old javadoc] [view source]