JohnZp opened a new issue, #16331:
URL: https://github.com/apache/dolphinscheduler/issues/16331

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   
![image](https://github.com/user-attachments/assets/40227b0b-62cf-4e3d-a948-25f2fbbff821)
   When creating a new task, the resource file cannot be displayed in a 
hierarchical manner, making it difficult to distinguish which file it is
   
   ### What you expected to happen
   
   
![image](https://github.com/user-attachments/assets/fb4f4e57-5904-4e0d-9ba1-cffea27dcb24)
   Ability to display files hierarchically
   
   ### How to reproduce
   
   IN HdfsStorageOperator, 
   ```java
       public List<StorageEntity> listFileStorageEntityRecursively(String 
resourceAbsolutePath) {
           exceptionIfPathEmpty(resourceAbsolutePath);
   
           List<StorageEntity> result = new ArrayList<>();
   
           LinkedList<String> foldersToFetch = new LinkedList<>();
           foldersToFetch.addLast(resourceAbsolutePath);
   
           while (!foldersToFetch.isEmpty()) {
               String absolutePath = foldersToFetch.pollFirst();
               RemoteIterator<LocatedFileStatus> remoteIterator = 
fs.listFiles(new Path(absolutePath), true);
               while (remoteIterator.hasNext()) {
                   LocatedFileStatus locatedFileStatus = remoteIterator.next();
                   
result.add(transformFileStatusToResourceMetadata(locatedFileStatus));
               }
           }
           return result;
       }
   ```
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to