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

9
LINES

< > BotCompany Repo | #1015854 // md5FromUniqueFile - see uniqueFileNameUsingMD5_80

JavaX fragment (include)

1  
sS md5FromUniqueFile(File f) {
2  
  if (f == null) null;
3  
  S s = f.getName();
4  
  S md5;
5  
  if (l(s) > md5length() && s.charAt(md5length()) == ' '
6  
    && isPossibleMD5(md5 = takeFirst(md5length(), s)))
7  
    ret md5;
8  
  null;
9  
}

Author comment

Began life as a copy of #1015172

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: #1015854
Snippet name: md5FromUniqueFile - see uniqueFileNameUsingMD5_80
Eternal ID of this version: #1015854/1
Text MD5: dbc9c9a91057a12232dd34596cd24c19
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-28 21:28:36
Source code size: 226 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 319 / 321
Referenced in: [show references]