getAbsolutePath() is not getCanonicalPath so it won't query the file
system. As a matter of fact it does not even throw ioexception

Ciao
Stefano
On Jan 23, 2013 10:53 AM, "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());
>
> Same here, getAbsolutePath() will not work.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/VoltDB/voltdb/pull/352/files#r2743331>.
>
>