It does by utmost looking at the user.dir system property. See comments on
http://diigo.com/0vy0u

You may also peruse the code yourself at http://goo.gl/NcH1B which is
called by getAbsolutePath()




On Wed, Jan 23, 2013 at 12:48 PM, Ning Shi <notifications@github.com> wrote:

> In src/frontend/org/voltdb/processtools/SFTPSession.java:
>
> > +         * directory entries are sorted first by their level (/l1 < /l1/l2 < /l1/l2/l3)
> > +         * and then their name. This loop adds all the directories that are required
> > +         * to ensure that given list of destination files can be copied over successfully
> > +         */
> > +        TreeSet<DirectoryEntry> directories = new TreeSet<DirectoryEntry>();
> > +        for (File f: files) {
> > +           addDirectoryAncestors(f.getParentFile(), directories);
> > +        }
> > +        /*
> > +         * for each entry it tests whether or not it already exists, and if it
> > +         * does not, it creates it (akin to mkdir -p)
> > +         */
> > +        for (DirectoryEntry entry: directories) {
> > +            if (!directoryExists(entry.getDirectory())) {
> > +                try {
> > +                    m_channel.mkdir(entry.getDirectory().getAbsolutePath());
>
>
> http://docs.oracle.com/javase/6/docs/api/java/io/File.html#getAbsolutePath()says it does.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/VoltDB/voltdb/pull/352/files#r2745539>.
>
>