[otrs-cvs] otrs/Kernel/System/VirtualFS FS.pm,1.6,1.7

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/Kernel/System/VirtualFS
In directory lancelot:/tmp/cvs-serv22449/Kernel/System/VirtualFS

Modified Files:
	FS.pm 
Log Message:
Simplified and improved file check implementation.

Author: mg

Index: FS.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/VirtualFS/FS.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -2 -u -d -r1.6 -r1.7
--- FS.pm	3 Dec 2012 12:43:29 -0000	1.6
+++ FS.pm	3 Dec 2012 13:28:10 -0000	1.7
@@ -15,5 +15,4 @@
 use warnings;
 
-use File::Path qw();
 use Time::HiRes qw();
 
@@ -40,4 +39,9 @@
     $Self->{Permission} = '664';
 
+    # create data dir
+    if ( !-d $Self->{DataDir} ) {
+        mkdir $Self->{DataDir} || die $!;
+    }
+
     # Check fs write permissions.
     # Generate a thread-safe article check directory.
@@ -47,5 +51,5 @@
     my $Path = "$Self->{DataDir}/$PermissionCheckDirectory";
 
-    if ( File::Path::make_path( $Path, { mode => 0755 } ) ) {
+    if ( mkdir( $Path, 0755 ) ) {
         rmdir $Path;
     }
@@ -59,9 +63,4 @@
     }
 
-    # create data dir
-    if ( !-d $Self->{DataDir} ) {
-        mkdir $Self->{DataDir} || die $!;
-    }
-
     # config (not used right now)
     $Self->{Compress} = 0;
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.