leran 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/leran.rb +3 -6
- metadata +2 -2
data/lib/leran.rb
CHANGED
@@ -27,7 +27,7 @@ class Leran
|
|
27
27
|
# def scanFolder: Find folders and files
|
28
28
|
# def moveFile: do... duhhhh
|
29
29
|
|
30
|
-
def initialize( fromDir, toDir, isDeep
|
30
|
+
def initialize( fromDir, toDir, isDeep )
|
31
31
|
@qtMoveds = 0
|
32
32
|
toDir = fromDir if toDir == '-e'
|
33
33
|
|
@@ -35,15 +35,12 @@ class Leran
|
|
35
35
|
puts 'Entering in the store directory and creating folders'
|
36
36
|
puts '_' * 52
|
37
37
|
|
38
|
-
scanFolder fromDir, toDir, isDeep
|
38
|
+
scanFolder fromDir, toDir, isDeep
|
39
39
|
end
|
40
40
|
|
41
|
-
def scanFolder( from,to,deep
|
41
|
+
def scanFolder( from,to,deep )
|
42
42
|
Dir.foreach( from ) do |file|
|
43
43
|
if !File.directory? "#{from}/#{file}"
|
44
|
-
if regexp
|
45
|
-
FileUtils::mv("#{from}/#{file}", "#{to}/#{byREGEXP}/#{file}")
|
46
|
-
end
|
47
44
|
ext = File.extname( file ).upcase
|
48
45
|
|
49
46
|
moveFile from,to,file,ext if ext != ""
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leran
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -20,7 +20,7 @@ extra_rdoc_files: []
|
|
20
20
|
files:
|
21
21
|
- lib/leran.rb
|
22
22
|
- bin/leran
|
23
|
-
homepage:
|
23
|
+
homepage: https://github.com/grsabreu/Leran
|
24
24
|
licenses: []
|
25
25
|
post_install_message:
|
26
26
|
rdoc_options: []
|