Libraryless. Click here for Pure Java version (2525L/16K).
1 | sbool isValidFileName(S s) { |
2 | ret nempty(s) && !eqOneOf(s, ".", "..") |
3 | && all(characters(s), c -> isValidFileCharacter(c)); |
4 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027711 |
Snippet name: | isValidFileName |
Eternal ID of this version: | #1027711/1 |
Text MD5: | 2cb1433a7b762e567bc84db9010c2301 |
Transpilation MD5: | cab9d0f2e226b9dd3e000047eaa8bc52 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-04-04 17:11:40 |
Source code size: | 132 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 217 / 340 |
Referenced in: | [show references] |