public final class FileAssistant extends Object
| Modifier and Type | Method and Description |
|---|---|
static URI |
createRemotePath(File localFile)
Determine the location a file should reside on on the remote environment.
|
static URI |
createRemotePath(File localFile,
Environment environment)
Determine the location on the remote server to which a file is to be uploaded.
|
public static URI createRemotePath(File localFile)
Environment.getEnvironment() to be in scope.localFile - A File reference to a local file whose location on the remote environment is to be determined.URI object representing the location on the remote server to which the given local file would
be uploaded. All files placed in CCLSOURCE will be automatically converted to lower-case; everything else
will retain its given casing.IllegalArgumentException - If the given file is not actually a file.NullPointerException - If the given file is null.createRemotePath(File, Environment)public static URI createRemotePath(File localFile, Environment environment)
localFile - A File object representing the local file to be uploaded.environment - A Environment object describing the remote environment to which the file will eventually be
uploaded.URI object representing the location on the remote server to which the given local file would
be uploaded. All files placed in CCLSOURCE will be automatically converted to lower-case; everything else
will retain its given casing.IllegalArgumentException - If the given file is not actually a file.NullPointerException - If the given file or environment is null.Copyright © 2019. All rights reserved.