List directory content with Project Reactor and DirectoryStream

后端 未结 2 1041
礼貌的吻别
礼貌的吻别 2021-01-26 15:00

I\'d like to use DirectoryStream with Project Reactor to list all the files in a directory.

My try is:

Path myDir = Paths.get(\"C:\\\\Users\\\\r.dacanal\         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-26 15:35

    list(dir) on directories with large amount of files uses too much memory, there is a reason for newDirectoryStream

提交回复
热议问题