Libraryless. Click here for Pure Java version (5046L/28K).
1 | static File migratePathFromDirToDir(File oldDir, File newDir, File path) { |
2 | S rel = nameRelativeToPhysicalSubdirectory_nonCanonical(path, oldDir); |
3 | if (rel == null) |
4 | ret path; |
5 | ret newFile(newDir, rel); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034455 |
Snippet name: | migratePathFromDirToDir |
Eternal ID of this version: | #1034455/1 |
Text MD5: | 3b31b061f412dc165dfe0b1325850387 |
Transpilation MD5: | 4dd678a78a7dce65d519f77776ae913b |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-08 01:03:20 |
Source code size: | 215 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 125 / 191 |
Referenced in: | [show references] |