Hi All my bad, Error in email. the fix was else: sniff.convert_newlines( dp ) shutil.move( dp, os.path.join( files_path, name ) ) + # My fix jboocock # + os.chmod(files_path +"/" + name, 0644) tab was off Cheers James. On 8/24/2012 1:28 AM, James wrote:
Hi All,
diff -r ba56d4746f7a tools/data_source/upload.py --- a/tools/data_source/upload.py Fri Aug 03 13:31:48 2012 -0400 +++ b/tools/data_source/upload.py Fri Aug 24 01:26:36 2012 +1200 @@ -357,6 +357,7 @@ else: sniff.convert_newlines( dp ) shutil.move( dp, os.path.join( files_path, name ) ) + os.chmod(files_path +"/"+name, "0644") # Move the dataset to its "real" path shutil.move( dataset.primary_file, output_path ) # Write the job info
Fixes permissions not been created for filenames correctly so an apache instance can access the extra files.
Cheers James. Research Assistant Biochemistry Department University of Otago New Zealand