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

3
LINES

< > BotCompany Repo | #1010163 // linux_partitionForPath - get partition name for directory

JavaX fragment (include)

static linux_partitionForPath(File path) {
  ret trim(backtick("df -P " + bashQuote(path) + " | tail -1 | cut -d' ' -f 1"));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1010163
Snippet name: linux_partitionForPath - get partition name for directory
Eternal ID of this version: #1010163/1
Text MD5: 030a811d515480a1b333ed3e7737aa51
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-05 18:19:45
Source code size: 128 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 333 / 349
Referenced in: [show references]