S3Sync.net
February 02, 2014, 01:35:28 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / Closed Bugs / Re: failure to create necessary directories on localhost? on: July 26, 2007, 06:49:36 AM
I had the same problem of syncing data from s3 to a local filesystem where the data *never* was before: The missing directories are simply not created on the fly.

To fix this insert the following in the require section:

require 'ftools'

And add File.makedirs() as follows:

def updateFrom(fromNode)
    if fromNode.respond_to?(:to_stream)
        fName = @path + '.s3syncTemp'
        File.makedirs(File.dirname(@path)) # This is the important part!

    [...]
end

Perhapes, this could make it to the next release, please?

Best regards, Jan
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!