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

6
LINES

< > BotCompany Repo | #1034455 // migratePathFromDirToDir

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

Libraryless. Click here for Pure Java version (5046L/28K).

static File migratePathFromDirToDir(File oldDir, File newDir, File path) {
  S rel = nameRelativeToPhysicalSubdirectory_nonCanonical(path, oldDir);
  if (rel == null)
    ret path;
  ret newFile(newDir, rel);
}

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: 126 / 191
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1034456 - migratePathFromDirToDirVerbose