Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1023141 // oshi_findFileStore

JavaX fragment (include) [tags: use-pretranspiled]

Uses 5404K of libraries. Click here for Pure Java version (4275L/23K).

static OSFileStore oshi_findFileStore(File f) {
  if (f == null) null;
  L<OSFileStore> l = oshi_fileStores();
  S mount = disk_findMountPoint(f, map(l, fs -> fs.getMount()));
  ret firstThat(l, fs -> eq(fs.getMount(), mount));
}

Author comment

Began life as a copy of #1023139

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023141
Snippet name: oshi_findFileStore
Eternal ID of this version: #1023141/3
Text MD5: 5051761f268fac7e1c322c290423b4ed
Transpilation MD5: 8a63d8445eeb8c049973708192386fff
Author: stefan
Category: javax / oshi
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-15 14:39:06
Source code size: 234 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 250 / 328
Version history: 2 change(s)
Referenced in: [show references]