Changeset 23655 for trunk/Nebulous-Server/lib/Nebulous/Server.pm
- Timestamp:
- Apr 1, 2009, 2:09:20 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous-Server/lib/Nebulous/Server.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/lib/Nebulous/Server.pm
r23460 r23655 15 15 use DBI; 16 16 use Digest::SHA1 qw( sha1_hex ); 17 use File::Basename qw( dirname ); 17 18 use File::ExtAttr qw( setfattr ); 18 19 use File::Path; 19 20 use File::Spec; 20 21 use Log::Log4perl; 22 use Nebulous::Keys qw( parse_neb_key parse_neb_volume ); 21 23 use Nebulous::Server::Config; 22 24 use Nebulous::Server::Log; 23 25 use Nebulous::Server::SQL; 24 use Nebulous::Keys qw( parse_neb_key parse_neb_volume );25 26 use Params::Validate qw( validate_pos SCALAR SCALARREF UNDEF ); 26 27 use URI::file; … … 1579 1580 my ($key, $vol_path) = @_; 1580 1581 1582 # if the key has '/' in it, hash only the dirname() component 1583 if ($key =~ m|/|) { 1584 $key = dirname($key); 1585 } 1586 1581 1587 # taken and modified from Cache::File::cache_file_path() 1582 1588 # Copyright (C) 2003-2006 Chris Leishman. All Rights Reserved.
Note:
See TracChangeset
for help on using the changeset viewer.
