Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
The doc's for Net::FTP say that ftp ls and ftp dir are not the same. This is not the normal command line.

From Net::FTP:

  • ls ( DIR )
    Get a directory listing of DIR , or the current directory.
    In an array context, returns a list of lines returned from the server. In a scalar context, returns a reference to a list.
  • dir ( DIR )
    Get a directory listing of DIR , or the current directory in long format.
    In an array context, returns a list of lines returned from the server. In a scalar context, returns a reference to a list.
Also note that du stats are not the same as ls stats. "du" is the size actually used on the disk. That will be at least equal to but, probably greater than the actual size of the file. That is because the file system writes to the disk in a quantum size of bytes, often 4096 bytes. Could be that the last byte of the file takes up one byte of this 4096 bytes. Other minimum "block" sizes to write to the disk are possible and there are a variety of names for what the file system calls this "minimum file system block size" on the disk.

In reply to Re^3: Net::FTP direcory size question by Marshall
in thread Net::FTP direcory size question by Todd Chester

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-25 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found