Skip to content

list all files under specific folder - #307

Open
I-Iege wants to merge 1 commit into
jfrog:devfrom
I-Iege:list_all_files
Open

list all files under specific folder#307
I-Iege wants to merge 1 commit into
jfrog:devfrom
I-Iege:list_all_files

Conversation

@I-Iege

Copy link
Copy Markdown

i want to have the info of all files under a specific directory, the folder.getChildren not enough because i dont want to do large recursive calls. There is a rest api call for this:
https://www.jfrog.com/confluence/display/rtf/artifactory+rest+api#ArtifactoryRESTAPI-FileList

@github-actions

github-actionsBot commented Jan 27, 2021

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️

@I-Iege

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@I-IegeI-Iege changed the title add file list to readmelist all files under specific folderJan 27, 2021
@I-Iege

Copy link
Copy Markdown
Author

recheckcla

@I-Iege
I-Iegeforce-pushed the list_all_files branch 3 times, most recently from 7bbf59a to 42a5671CompareFebruary 1, 2021 11:56
@I-Iege

Copy link
Copy Markdown
Author

recheckcla

@I-Iege

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@I-Iege

Copy link
Copy Markdown
Author

recheckcla


import java.util.List;

public interface FileList {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need this new interface (and its implementing class)?
I can see that it is used as the returned value for this new API -

FileList list = folder.list(deep, listFolders, timeStamps);

but the returned value of this API can also be -

List<ListItem>= folder.list(deep, listFolders, timeStamps);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think i need it for the deserialization because the return data has this structure:
String uri;
Date created;
ListItemImpl[] files;

@I-Iege
I-Iegeforce-pushed the list_all_files branch 5 times, most recently from b642e42 to cd13ec2CompareFebruary 18, 2021 13:53

@I-IegeI-Iege left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eyalbe4 Can i merge now?


import java.util.List;

public interface FileList {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think i need it for the deserialization because the return data has this structure:
String uri;
Date created;
ListItemImpl[] files;

@agrasth
agrasthforce-pushed the dev branch 4 times, most recently from bfea74c to f1ec060CompareApril 6, 2026 08:16
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@I-Iege@eyalbe4