Skip to content

leizzer/parker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

task :move do

  files '.jpg', '.png', '.bmp', having: 'vacations'
  files '.avi', existing: '.sub'

  from 'home/fotos', 'home/donwloads'
  from 'home/descktop'

  to 'home/usr/bazoora'

end

task :copy do

  files '.jpg', '.png', '.bmp', having: 'vacations'

  folders '2011'

  from 'home/fotos', 'home/donwloads' do
    rename /vacations/, /2011-vac-/
  end
  from 'home/descktop'


  to 'home/usr/bazoora'

end

task :move, :recursive => :tree do 
# options for: :recursive => 
#     :tree : copy or move recursively recreating the same tree structure in the target directory
#     :plain : copy or move recursively to the target directory

  files '.jpg', '.png', '.bmp', having: 'vacations'
  files '.avi', existing_the: '.sub' # :existing_the look if the .sub (in this case) have the same name that .avi (in this case)

  from 'home/fotos', 'home/donwloads'
  from 'home/descktop'

  to 'home/usr/bazoora'

end

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages