gitlab-org--gitlab-foss/app/services/files
Ben Ford 3be9d2c422 Add ability to create directories in the editor
Simply type a name with a `/` directory separator and new directories
will be created. This does not do the fancy UI work that github.com
does, but it will get the job done.

I could not find tests for file creation, so I didn't add a test for
this slight behaviour modification. I did test directory traversals
though, using both absolute paths like `/tmp/foo.txt` and relative paths
like `../../foo.txt`. Neither case escaped the repository, though
attempting to traverse with a relative path resulted in a 500 error that
did not affect application stability upon reload.
2015-10-29 15:49:07 +01:00
..
base_service.rb Fix rubocop warnings in app 2015-10-03 00:56:37 -05:00
create_dir_service.rb Add ability to create directories in the editor 2015-10-29 15:49:07 +01:00
create_service.rb Add ability to create directories in the editor 2015-10-29 15:49:07 +01:00
delete_service.rb Refactor how repository makes commit with pre/post receive hooks 2015-08-14 16:23:40 +02:00
update_service.rb Add directory feature button 2015-10-07 04:22:55 -07:00