Jamie Paton
9890657124
Namespace File
2014-02-24 23:09:38 -08:00
Jamie Paton
4ffca659cc
Don't read entire file into memory when saving to local blob storage. (local files)
...
We are using the local blobstore as a backend for concurrent uploads and
observed that memory was leaking quite quickly as GC cannot keep up.
So here, when the dest, src are both local files, instead of calling
File.read, simply copy the file.
2014-02-24 14:15:25 -08:00
Sjoerd Andringa
e15c4a377e
Also call #load in case of missing local root folder.
2013-11-02 11:05:21 +01:00
Sjoerd Andringa
155c4503ed
Fog::Storage::Local#directories#all: Don't break when :local_root folder is missing
2013-10-31 21:26:28 +01:00
Andy Lindeman
ce98e3f970
Local storage's File quacks like other Directories
...
Even though it doesn't accept any options, it'd be nice if it accepted
them anyway in the name of duck typing and allowing backends to be more
swappable.
2013-09-26 13:27:05 -04:00
Karl Freeman
6ddc27f5de
Chdir in a block to dry up all method
...
- also, plays much nicer with FakeFS
2013-05-27 16:07:26 +01:00
Paul Thornthwaite
fbc5c52194
[local|storage] Updates reference to service
2013-01-07 21:01:16 +00:00
Thomas Wright
9fc461f0f8
Ignore existing directory when creating on local storage
2012-10-07 17:42:51 -05:00
Adam Tanner
61ff93af32
Local storage support for #public_url.
2012-07-22 20:45:04 -07:00
Benjamin Manns
288f5714c2
[local|storage] Add copy method to Local::File.
...
This fixes fog/fog#735 .
2012-02-16 14:43:46 -05:00
Benjamin Manns
1deb159c6a
[local|storage] Fix Local::File deletion for Ruby 1.8.
...
Ruby 1.8 doesn't have a Dir.exists? method, which causes an exception and
prevents empty parent directories from being deleted. These changes use
File.exists? and File.directory? in place of Dir.exists?. Fixes
fog/fog#707 .
2012-02-15 12:52:52 -05:00
geemus
dc61fc09b2
[storage|local] move local storage to its own shared area (namespacing should probably be corrected)
...
ninefold fix
2011-08-24 14:09:18 -05:00
geemus
ac480ad928
[storage] consolidate
2011-01-07 15:34:20 -08:00
geemus
21cd346b4d
[local|storage] CGI.escape file names
2010-11-23 13:45:37 -08:00
geemus
73f5fdf9e7
[local|storage] properly write out file contents
2010-11-22 14:20:45 -08:00
geemus
5854e249aa
more consistent attribute storage/usage
2010-11-19 13:45:45 -08:00
geemus
3f5b48e812
add public methods to file model
2010-11-18 11:18:46 -08:00
geemus
93b8d32845
[storage] add public= and public_url for directory, public_url for file
2010-11-05 15:31:44 -07:00
geemus
c53b5e273c
fixing more warnings
2010-10-13 13:20:18 -07:00
geemus
46fdab47e5
[aws|storage] continuing to flesh out tests
2010-10-12 18:07:36 -07:00
geemus
f890f27141
fixing warnings
2010-10-12 16:23:35 -07:00
geemus
619f7d430f
fix paths for core requires
2010-10-04 14:02:08 -07:00
geemus
71e4f64024
[local] fix some leftover bugs from the remodel
2010-09-21 10:54:15 -07:00
geemus
eb6bca6f34
leftovers that I missed on the first pass in the last few commits
2010-09-08 14:41:14 -07:00
geemus
24897e9c1e
[local] rename files to storage for consistency
2010-09-08 12:50:38 -07:00